Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lfolco/phpstorm-m2-filetemplates
PHPStorm Magento 2 File Templates
https://github.com/lfolco/phpstorm-m2-filetemplates
Last synced: about 1 month ago
JSON representation
PHPStorm Magento 2 File Templates
- Host: GitHub
- URL: https://github.com/lfolco/phpstorm-m2-filetemplates
- Owner: lfolco
- License: gpl-3.0
- Created: 2017-07-09T15:21:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-21T18:56:04.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T05:15:37.399Z (4 months ago)
- Language: HTML
- Size: 45.9 KB
- Stars: 43
- Watchers: 4
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-magento2 - Magento 2 PHPStorm File Templates - PHPStorm Magento 2 File (Open Source Extensions / Development Utilities)
- awesome-magento2 - Magento 2 PHPStorm File Templates - PHPStorm Magento 2 File (Open Source Extensions / Development Utilities)
README
# phpstorm-m2-filetemplates
PHPStorm Magento 2 File TemplatesUseful file templates for working with Magento 2.
## To install, place the files directly in the appropriate folder. Note that [Version] corresponds to the version of PhpStorm you have installed.
### Mac OS
PhpStorm 2020 or newer: ~/Library/Application Support/JetBrains/PhpStorm[VERSION]/fileTemplates/PhpStorm 2019 and below: ~/Library/Preferences/PhpStorm[VERSION]/fileTemplates/
### Windows
PhpStorm 2020 or newer: %USERPROFILE%\AppData\Roaming\JetBrains\PhpStorm[VERSION]/fileTemplates/PhpStorm 2019 and below: %USERPROFILE%\.PhpStorm[VERSION]\config\fileTemplates/
### Linux
PhpStorm 2020 or newer: ~/.config/JetBrains/PhpStorm[VERSION]/fileTemplates/PhpStorm 2019 and below: ~/.PhpStorm[VERSION]/config/fileTemplates/
Create the directories if they are not present.
Note that you must put the templates directly in the above folders, do not put them in a subfolder.
## How to Use
Once the templates are installed, you can access them by right-clicking on a folder and selecting _New_, then _From File Template_. If you do not see this option, you may have to change your project schema for file templates.Navigation to _Preferences_, _Editor_, _File Templates_. In that dialog, select _Default_ under _Schema_. You should see the templates listed in the panel.