devel:intellij_idea
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:intellij_idea [2014-03-14 17:32] – [Configure Idea] Update IntelliJIdea version number & add OSX file location ChrisS | devel:intellij_idea [2022-10-27 19:03] (current) – [Path Mappings] andi | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== IntelliJ Idea ====== | ====== IntelliJ Idea ====== | ||
- | [[https:// | + | {{https:// |
The DokuWiki project has been provided with a free, unlimited user license for Idea by JetBrains. Regular DokuWiki contributors can apply for the free license key by sending a simple mail to [[user> | The DokuWiki project has been provided with a free, unlimited user license for Idea by JetBrains. Regular DokuWiki contributors can apply for the free license key by sending a simple mail to [[user> | ||
Line 13: | Line 13: | ||
* HTML Tools | * HTML Tools | ||
* JavaScript Support | * JavaScript Support | ||
- | * PHP | + | * PHP |
* PHPUnit code coverage | * PHPUnit code coverage | ||
- | Plugins can be installed via '' | + | Plugins can be installed via '' |
Note: not all of the plugins above might be available (or needed) in PHPStorm. | Note: not all of the plugins above might be available (or needed) in PHPStorm. | ||
Line 26: | Line 26: | ||
{{ : | {{ : | ||
- | ===== Configure Idea ===== | + | ===== Coding Style ===== |
- | To setup idea for DokuWiki' | + | To setup Idea for DokuWiki' |
<file xml ~/ | <file xml ~/ | ||
<?xml version=" | <?xml version=" | ||
+ | <!-- | ||
+ | Shell code to update: | ||
+ | |||
+ | wget -O dokuwiki-codestyle.xml \ | ||
+ | | ||
+ | | ||
+ | --> | ||
< | < | ||
<option name=" | <option name=" | ||
+ | < | ||
+ | <option name=" | ||
+ | </ | ||
< | < | ||
<option name=" | <option name=" | ||
Line 39: | Line 49: | ||
<option name=" | <option name=" | ||
<option name=" | <option name=" | ||
- | <option name="CONCAT_SPACES" | + | <option name="LOWER_CASE_BOOLEAN_CONST" value=" |
- | <option name=" | + | <option name="LOWER_CASE_NULL_CONST" value=" |
- | <option name="PHPDOC_BLANK_LINES_AROUND_PARAMETERS" value=" | + | |
</ | </ | ||
<XML> | <XML> | ||
Line 48: | Line 57: | ||
< | < | ||
<option name=" | <option name=" | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <option name=" | ||
+ | </ | ||
</ | </ | ||
< | < | ||
Line 57: | Line 71: | ||
<option name=" | <option name=" | ||
<option name=" | <option name=" | ||
+ | <option name=" | ||
<option name=" | <option name=" | ||
<option name=" | <option name=" | ||
Line 78: | Line 93: | ||
</ | </ | ||
- | Then go to '' | + | Command to download from this wiki (relative |
+ | <code> | ||
+ | wget https://www.dokuwiki.org/ | ||
+ | -O codestyles/ | ||
+ | </code> | ||
- | Idea comes with some sensible defaults already. The following are the settings we recommend to change | + | Then go to '' |
- | Additionally you may want to configure the following inspections at '' | + | Additionally you may want to configure the following inspections at '' |
* PHP | * PHP | ||
Line 90: | Line 109: | ||
* Missing PHPDoc comment: true | * Missing PHPDoc comment: true | ||
* Spelling: false | * Spelling: false | ||
+ | |||
+ | ===== Path Mappings ===== | ||
+ | |||
+ | IDEA can make more intelligent suggestions when it knows where which parts are located where. To do so you should add some directory markings. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | * focus the directory tree and press F4 | ||
+ | * this should open the Module Settings dialog | ||
+ | * select a directory, then click on the appropriate "Mark as" button at the top | ||
+ | * click the pen icon on the right to configure an associated namespace | ||
+ | |||
+ | ^ Directory ^ Mark as ^ Namespace ^ | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Mapping of (plugin) git repositories ===== | ||
+ | |||
+ | IDEA will automatically keep track of git changes for the main DokuWiki checkout. But usually plugins and templates will have their own .git directory. Telling IDEA about it is a good idea. | ||
+ | |||
+ | - Click on File -> Settings... | ||
+ | - Select " | ||
+ | - Select " | ||
+ | - At the bottom of the list recognized git repositories are listed. Select to add. | ||
+ | |||
+ | |||
===== Integrate Unit Tests ===== | ===== Integrate Unit Tests ===== | ||
Our [[devel: | Our [[devel: | ||
- | Click the //Add// button | + | First set default configuration, |
+ | |||
+ | Under '' | ||
+ | |||
+ | Click the '' | ||
* Name: '' | * Name: '' | ||
Line 120: | Line 176: | ||
====Individual/ | ====Individual/ | ||
- | In order to run individual test cases you need to add a few more settings. Go to '' | + | In order to run individual test cases you need to add a few more settings. Go to '' |
+ | Use '' | ||
+ | |||
+ | Then you need to mark either under '' | ||
==== PHPUnit autocompletion ==== | ==== PHPUnit autocompletion ==== | ||
+ | **Note**: only needed for older versions of IDEA intellij. Is today automatically retrieve from the '' | ||
To use all the favor of Idea you have to add the PHPUnit source to your project. To add this you have to: | To use all the favor of Idea you have to add the PHPUnit source to your project. To add this you have to: | ||
Line 130: | Line 190: | ||
- Select " | - Select " | ||
- Click on the " | - Click on the " | ||
- | - Select your PHPUnit folder (eg. ''/ | + | - Select your PHPUnit folder (eg. ''/ |
- | - In the following dialog choose "source" | + | - In the following dialog choose "Sources" |
- Click " | - Click " | ||
- Click " | - Click " | ||
- | - And your done | + | - And you' |
Idea will now index the PHPUnit source and can provide auto completion inside of unit tests. | Idea will now index the PHPUnit source and can provide auto completion inside of unit tests. | ||
+ | |||
===== Tips and Tricks ===== | ===== Tips and Tricks ===== | ||
devel/intellij_idea.1394814769.txt.gz · Last modified: 2014-03-14 17:32 by ChrisS