JythonDeveloperGuide/IntellijTricks¶
Legacy Wiki Page
This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.
Intellij IDEA Tricks¶
This page describes useful tricks for Intellij IDEA users. If you haven’t created an Intellij project for Jython yet, see JythonDeveloperGuide/IntellijNotes.
Eclipse Code Formatter¶
Configuring the CodingStandards by hand is an annoying task. Fortunately there is a plugin to import Eclipse code formatting rules into Intellij IDEA: Eclipse Code Formatter. It is available in the plugin repository.
The Eclipse Code Styles file is attached to the CodingStandards page.
Eclipse Code Formatter can be configured under Settings (shortcut: ctrl + alt + s) –> Eclipse Code Formatter
Running Jython and JUnit tests inside IDEA¶
General Run/Debug Configurations settings:
Jython¶
Configuration Type: Application
Additional parameters:
Example: Regression Tests¶
Running the regression tests in IDEA is interesting for at least two reasons:
Code Coverage
Debugger
IntellijTricks/JythonRegressionTestConfiguration.jpg)
See regrtest.py for detailed information about additional program arguments.
JUnit tests¶
Configuration Type: JUnit
Additional parameters:
Example: _ioTest¶
IntellijTricks/JythonJUnitConfiguration.jpg)