Useful file templates for working with Magento 2.
Vendor and Module name will be automatically detected from the Path of the Module.
- clone the repository
git clone https://github.com/bayer/phpstorm-m2-filetemplates.git
- create zip archive:
git archive --output phpstorm-m2-templates.zip master
- import settings into PHPStorm:
Go to File -> Import Settings -> and openphpstorm-m2-templates.zip
You will find the new templates in the 'Project Files' Tool Window if you right-click on a folder an chose 'New'