Setting up PhpStorm: Difference between revisions
From MoodleDocs
No edit summary |
|||
Line 1: | Line 1: | ||
[http://www.jetbrains.com/phpstorm/ 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. | [http://www.jetbrains.com/phpstorm/ 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. | ||
==Installation== | |||
===OS X=== | |||
Install latest Java JDK 1.7.x from [http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html Oracle] (Java 1.6 from Apple is not maintained much). | |||
You can hack older PhpStorm 7 to be compatible with Java 1.7 by editing the "PhpStorm.app/Contents/Info.plist" JVMOptions - JVMVersion = 1.7* | |||
==General settings== | ==General settings== |
Revision as of 21:15, 10 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.
Installation
OS X
Install latest Java JDK 1.7.x from Oracle (Java 1.6 from Apple is not maintained much).
You can hack older PhpStorm 7 to be compatible with Java 1.7 by editing the "PhpStorm.app/Contents/Info.plist" JVMOptions - JVMVersion = 1.7*
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