Templates
File | Settings | Languages & Frameworks | JavaScript | Templates for Windows and Linux
PhpStorm | Settings | Languages & Frameworks | JavaScript | Templates for macOS
CtrlAlt0S
Required plugins:
JavaScript and TypeScript
- The plugin is bundled with PhpStorm and enabled by default.
Handlebars/Mustache
or EJS
- Install the plugin on the Settings | Plugins page, tab Marketplace.
On this page, configure processing of EJS inclusions, Handlebars expressions, and Mustache templates in PhpStorm.
Make sure the JavaScript and TypeScript and EJS or Handlebars/Mustache required plugins are enabled on the Settings | Plugins page, tab Installed. For more information, refer to Managing plugins.
Item | Description |
---|---|
Handlebars/Mustache | In this area, configure processing of Handlebars expressions and Mustache templates in PhpStorm. The settings specified on this page apply to dedicated Handlebars and Mustache files that have the extension .hbs or .mustache respectively.
For more information about Handlebars expressions and Mustache templates, refer to http://handlebarsjs.com/. The area is only available when the Handlebars/Mustache plugin is installed and enabled. The Handlebars/Mustache plugin is not bundled with PhpStorm, but it can be installed on the Settings | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains Marketplace. |
EJS | In this area, specify delimiters for inclusions of EJS in your code. Based on these delimiters, PhpStorm will recognize and process such inclusions correctly. A pair of delimiters is also referred to as execute tag.
|
Thanks for your feedback!