Created on Sept. 19, 2012, 5:59 p.m. by Hevok & updated on May 6, 2013, 4:15 p.m. by Hevok
PyCharm is an excellent editor/IDE (Interactive Development Environment) for Python and Django, hence also for Denigma.
¶
¶
Installing
¶
----------
¶
First of all, install the prerequisite Java JDK [http://www.denigma.de/links/836]. For this add the required PPA:
¶
¶
sudo add-apt-repository ppa:webupd8team/java
¶
¶
Then update your system and install Java:
¶
¶
sudo apt-get update && sudo apt-get install oracle-java8-installer
¶
¶
TO verify that Java is installed to the following check:
¶
¶
java -version
¶
¶
Next, download the most recent version of PyCharm, either the offical release
¶
[http://www.jetbrains.com/pycharm/download/index.html] or the beta version release candidate [http://confluence.jetbrains.com/display/pyh/jetbrains+pycharm+preview].
¶
It includes a trial version.
¶
¶
Detar the archive, rename it to simply pycharm, move it another place where (if you like)
¶
and cd in. There you run:
¶
¶
bash bin/pycharm.sh
¶
¶
Confirm with Enter and it should be done.
¶
¶
Jumping
¶
-------
¶
PyCharm allows to jump to class/method/function definitions (Ctrl+Click on a symbol). This is extremely useful to understand the source code.
¶
¶
Renaming classes, methods and variables
¶
---------------------------------------
¶
PyCharm automates renaming of objects at all places where they are used. Position the editor caret at any symbol and press Shift+F6
(Refactor | Rename).
¶
Input the new name and confirm with Enter
.
¶
¶
It is possible to browse all the places where the variable is used and press Do Refactor
button to finish the renaming operation.
¶
¶
¶
Valid parameters
¶
----------------
¶
Placing the cursor between the parenthesis of a method call an pressing Ctrl+P
brings up a list of valid parameters.
¶
¶
¶
Changing Style
¶
--------------
¶Ctrl+Backspace+Quote
allows to quickly change the coding highlighting style colour schema.
¶
¶
¶
Line Selection
¶
--------------
¶
If nothing is selected and then Ctrl+C
is pressed, the whole line gets selected.
¶
¶
Documentation
¶
-------------
¶Ctrl+Q
(Quick Documentation) can be used to fetch and display the documentation of function.
¶
¶
Changes
¶
-------
¶
With Alt+Shift+C
recent changes can be quickly reviewed.
¶
¶
¶
The early access program can be accessed here: http://confluence.jetbrains.com/display/pyh/jetbrains+pycharm+preview+%28EAP%29
Comment on This Data Unit