PhpStorm 2020.3 Help

Code Style: EJS

File | Settings | Code Style - EJS for Windows and Linux
PhpStorm | Preferences | Code Style - EJS for macOS
Ctrl+Alt+S the Settings button

On this page, configure formatting options to be applied within EJS inclusions in your code. PhpStorm recognizes such inclusions based on these delimiters specified on the EJS page of the Settings dialog. The default delimiters are <% and %>. For more details about using EJS, see http://embeddedjs.com/getting_started.html.

View the result in the Preview pane.

ItemDescription
Spaces within execute tagSelect this checkbox to have spaces inserted between the opening <% and closing %> delimiters and the template body inside them. Otherwise, the template body is not separated from the delimiters.
Spaces within execute and get escaped tagSelect this checkbox to have spaces inserted between the template body on the one hand and the opening/closing delimiters or escape tags = on the other. Otherwise, the template body immediately follows and precedes the delimiters and tags.
Spaces within execute and get unescaped tagSelect this checkbox to have spaces inserted between the template body on the one hand and the opening/closing delimiters or unescape tags == on the other. Otherwise, the template body immediately follows and precedes the delimiters and tags.
Spaces within generate tagSelect this checkbox to have spaces inserted between the template body on the one hand and the opening/closing delimiters or generate tags % on the other. Otherwise, the template body immediately follows and precedes the delimiters and tags.
Spaces within filter tagSelect this checkbox to have spaces inserted between the template body on the one hand and the opening/closing delimiters or filter tags %=: on the other. Otherwise, the template body immediately follows and precedes the tags.
Before ':'Select this checkbox to have a space inserted before a colon :.
After ':'Select this checkbox to have a space inserted after a colon :.
Chain '|'Select this checkbox to have spaces inserted before and after a vertical bar |.
Last modified: 08 March 2021