PhpStorm now bundles WordPress coding style natively, starting from version 8.
- Go to
Project Settings
>Code Style
>PHP
. - Select
Set From...
(top right of window) >Predefined Style
>WordPress
.
No longer need to muck with this import! :)
EAP should ship with native WP style as far as I know? If it's wrong in that one should probably be reported as bug...
Yeah, there seems to be mild upgrade issue with that setting going from 7 to 8, hit it too. :)
How to auto Complete for wordpress comments and function definition in PhpStorm?
/**
* The Header template for our theme
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package Hasan_WordPress
* @subpackage Hasan
* @since Hasan 1.0
*/
@momin-ctg you can use /** and press "Enter"
@andizer
That shoudn't be the case (
<option name="SPACE_AROUND_UNARY_OPERATOR" value="true" />
). Check your code style settings for changes (Project Settings > Code Style > PHP > Spaces > Around Operators > Unary Operators).