PhpStorm 2023.3 Help

Code Style: EJS

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 information about using EJS, refer to http://embeddedjs.com/getting_started.html.

View the result in the Preview pane.

Item

Description

Spaces within execute tag

Select 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 tag

Select 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 tag

Select 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 tag

Select 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 tag

Select 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: 25 March 2024