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 [2019-03-10 21:02] – [Configure Idea] Klap-in | devel:intellij_idea [2022-10-27 19:03] (current) – [Path Mappings] andi | ||
---|---|---|---|
Line 26: | Line 26: | ||
{{ : | {{ : | ||
- | ===== Configure Idea ===== | + | ===== Coding Style ===== |
- | To setup idea for DokuWiki' | + | To setup Idea for DokuWiki' |
<file xml ~/ | <file xml ~/ | ||
Line 101: | Line 101: | ||
Then go to '' | 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 109: | 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 ===== | ||
Line 115: | Line 148: | ||
First set default configuration, | First set default configuration, | ||
- | Under '' | + | Under '' |
- | Click the // | + | Click the '' |
* Name: '' | * Name: '' | ||
Line 143: | 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 153: | 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 " | ||
Line 160: | Line 197: | ||
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.1552248175.txt.gz · Last modified: 2019-03-10 21:02 by Klap-in