Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

Setting up PhpStorm: Difference between revisions

From MoodleDocs
Line 2: Line 2:


==General settings==
==General settings==
TODO
 
* 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==
==Code formatting==

Revision as of 04:27, 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 "Project Settings / Code Style / PHP".

Moodle code checker

TODO