Difference between revisions of "PyCharm"

(added metadata)
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
PyCharm is an awesome IDE originally designed for Python development. It can also work with many other languages, including lua. This is a short tutorial on setting up PyCharm on OSX Lion for love2d projects.
+
PyCharm is an awesome IDE originally designed for Python development. However, it can also work with many other languages, including Lua.
 +
 
 +
Download [https://www.jetbrains.com/pycharm/ here].
 +
 
 +
 
 +
This is a short tutorial on setting up PyCharm on OSX Lion for LÖVE projects.
  
 
I assume you already have PyCharm installed, and love is in your Applications directory.
 
I assume you already have PyCharm installed, and love is in your Applications directory.
Line 16: Line 21:
 
[[File:pycharm_2_external_tool.png|400px]]
 
[[File:pycharm_2_external_tool.png|400px]]
  
At this point, you can launch love2d projects by running your new tool from the Tools menu. I like to have a shortcut key, but the next step is optional.
+
At this point, you can launch LÖVE projects by running your new tool from the Tools menu. I like to have a shortcut key, but the next step is optional.
  
 
3. Go to the Keymap page in the PyCharm Preferences. Search for the name of your tool, and click Add Keyboard Shortcut...
 
3. Go to the Keymap page in the PyCharm Preferences. Search for the name of your tool, and click Add Keyboard Shortcut...
Line 24: Line 29:
 
I used the shortcut Ctrl-Command-A.
 
I used the shortcut Ctrl-Command-A.
  
That's it! You can now make a new project, add a new file called "main.lua" and fill it with all your lovey goodness. Run it simply by hitting your shortcut key or running Love2d from the Tools menu.
+
That's it! You can now make a new project, add a new file called "main.lua" and fill it with all your lovey goodness. Run it simply by hitting your shortcut key or running LÖVE from the Tools menu.
  
 
[[File:pycharm_4_result.png|400px]]
 
[[File:pycharm_4_result.png|400px]]
  
{{#set:LOVE Version=0.7}}
+
{{#set:Name=PyCharm}}
{{#set:Description=How to set up PyCharm for LOVE2D projects under OSX.}}
+
{{#set:Author=JetBrains}}
 +
{{#set:Description=Source Code Editor}}
 +
{{#set:Screenshot=File:pycharm_4_result.png}}
 +
{{#set:Type=Editor}}
  
[[Category:Tutorials]]
+
[[Category:Software]]
 +
[[Category: Editor integration]]

Latest revision as of 06:31, 5 September 2016

PyCharm is an awesome IDE originally designed for Python development. However, it can also work with many other languages, including Lua.

Download here.


This is a short tutorial on setting up PyCharm on OSX Lion for LÖVE projects.

I assume you already have PyCharm installed, and love is in your Applications directory.

1. Open PyCharm Preferences and go to the Plugins page. Search the available plugins for lua. Right-click on it and select Download and Install.

pycharm 1 plugin.png

2. Go to the External Tools page in PyCharm Preferences. Add a new tool, give it a name. Fill in the following options:

  • Program: open
  • Parameters: -n -a love "$ProjectFileDir$"

$ProjectFileDir$ is a macro that inserts the project directory. You can find more macros in the "Insert Macro" button.

pycharm 2 external tool.png

At this point, you can launch LÖVE projects by running your new tool from the Tools menu. I like to have a shortcut key, but the next step is optional.

3. Go to the Keymap page in the PyCharm Preferences. Search for the name of your tool, and click Add Keyboard Shortcut...

pycharm 3 keymap.png

I used the shortcut Ctrl-Command-A.

That's it! You can now make a new project, add a new file called "main.lua" and fill it with all your lovey goodness. Run it simply by hitting your shortcut key or running LÖVE from the Tools menu.

pycharm 4 result.png