Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# phpstorm-m2-filetemplates
PHPStorm Magento 2 File Templates

Useful 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.