These are our custom WordPress live templates for PhpStorm. We have devided them in two groups:
- PHP
templates/php.xml - WordPress
templates/wordpress.xml
- Download the files
php.xmlandwordpress.xml - Copy them to
~/Library/Application Support/JetBrains/PhpStorm20{x}.{x}/templatesdirectory. - Restart PhpStorm.
- The two groups 'PHP' and WordPress' will be activated by default. Disable any group or live template from PHPStorm Preferences > Editor > Live Templates.
- A list of available abbreviations that will trigger a live template can be found by selecting 'PHP' or WordPress' in PHPStorm Preferences > Editor > Live Templates.
This is our own WordPress coding styles for PhpStorm, forked from the WordPress.xml packaged with PhpStorm
- Download the
codestyles/CodepressWordPress.xmlfile. - Copy it to
~/Library/Application Support/JetBrains/PhpStorm20{x}.{x}/codestylesdirectory. - Activate the scheme by selecting it in PHPStorm Preferences > Editor > Code Style.
This is our own WordPress code inspections format for PhpStorm
- Download the
inspection/Codepress.xmlfile. - Copy it to
~/Library/Application Support/JetBrains/PhpStorm20{x}.{x}/inspectiondirectory. - Activate the scheme by selecting 'Codepress' in PHPStorm Preferences > Editor > Inspections.
This are our own PHP keymaps for PhpStorm taken from the Laracasts series
- Download the
keymaps/Laracasts.xmlfile. - Copy it to
~/Library/Application Support/JetBrains/PhpStorm20{x}.{x}/keymapsdirectory. - Activate the keymap by selecting 'Laracasts' in PHPStorm Preferences > Keymap.
This are our own PHP File templates for PhpStorm.
- Download the content of the
fileTemplatesdirectory. - Copy it to
~/Library/Application Support/JetBrains/PhpStorm20{x}.{x}/fileTemplatesdirectory. - Restart PhpStorm.
-
Clone the repo.
-
Symlink the file to the
~/Library/Application Support/JetBrains/PhpStorm20{x}.{x}/<directory>directory:$ cd ~/Library/Preferences/PhpStorm{xx}/<directory> $ ln -s /<path_to_repo>/<filename>.xml -
Restart PhpStorm.
-
Make changes, submit pull requests etc.