Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Setting up PhpStorm: Difference between revisions

From MoodleDocs
Line 17: Line 17:


==PHPUnit integration==
==PHPUnit integration==
TODO
==Database editor==
TODO
TODO

Revision as of 04:32, 9 June 2014

PhpStorm is a commercial IDE, it is arguably the best IDE for PHP developers with features such as code completion, code inspection, phpunit support, Behat support, database editor, debugger, etc.

General settings

  •  Disable missing @throws tag warning in "Preferences / Project Settings / Inspections / PHP / PHPDoc"
  • Strip trailing whitespace from "Modified Lines" in "Preferences / IDE Settings / Editor"
  • Show line numbers in "Preferences / IDE Settings / Editor / Appearance"

Code formatting

  •  Setup coding style to use all rules from [Coding style] in "Preferences / Project Settings / Code Style / PHP".
  • Set line separator to Unix in "Preferences / Project Settings / Code Style / General".
  • Set right margin to 132 or 180 in "Preferences / Project Settings / Code Style / General".

Moodle code checker

TODO

PHPUnit integration

TODO

Database editor

TODO