magento2-phpstorm-templates
magento2-phpstorm-templates copied to clipboard
PHPStorm Live template preferences for Magento 2 Projects
Magento 2 PHPStorm Preferences
This project is intended to setup useful PHPStorm Templates for Magento 2 Projects.
Disclaimer
This project overrides the default file template PHP Class.php to add a specific header comments.
We need to edit this file instead of creating a new one because automatic Namespace only works on this specific template.
All other templates are custom ones with a naming prefix 2m in order to make them unique.
Installation
-
Just download the
.jarfile and import it in your PHPStormFile -> Import Settingshttps://github.com/staempfli/magento2-phpstorm-templates/releases/<version>/stmpfl_2m_templates.jar
-
Set your personal configuration for comments on PHPStorm
Preferences -> Editor -> File and Code Templates -> stmpfl_variables
Available Templates
- File Templates
- Live Templates
Usage
All file and live templates namings start with 2m except PHP Class.php.
We need to use the default PHP Class.php because automatic Namespace only works on this specific template.
Contribute
You can contribute with new templates following this manual:
- Contribute manual
Demo
