WebStorm 2016.3 Help

Code Style: EJS

File | Settings | Code Style - EJS for Windows and Linux
WebStorm | Preferences | Code Style - EJS for OS X
Ctrl+Alt+S

/help/img/idea/2016.3/settings.png

On this page, configure formatting options to be applied within EJS inclusions in your code. WebStorm recognizes such inclusions based on these delimiters specified on the EJS page of the Settings dialog box. 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 tag Select this check box 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 tag Select this check box 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 tag Select this check box 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 tag Select this check box 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 tag Select this check box 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 check box to have a space inserted before a colon (:).
After ':'Select this check box to have a space inserted after a colon (:).
Chain '|'Select this check box to have spaces inserted before and after a vertical bar (|).

See Also

Last modified: 22 March 2017