Change: PyCharm

created on Sept. 19, 2012, 5:59 p.m. by Hevok & updated on Nov. 16, 2012, 2:58 p.m. by Hevok

PyCharm is an excellent editor/IDE (Interactive Development Environment) for Python and Django, hence also for Denigma.

Installing

Download the most recent version of PyCharm [http://www.jetbrains.com/pycharm/download/index.html]. It includes a trial version.

Detar the archive, 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.

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.

PyCharm.png

Tags: tutorial
Categories: Tutorial
Parent: Python

Comment: Added reviewing changes.

See entry | Admin

Comment on This Data Unit