PhpStorm 2021.1 Help

Smarty

File | Settings | PHP | Smarty for Windows and Linux
PhpStorm | Preferences | PHP | Smarty for macOS
Ctrl+Alt+S
the Settings/Preferences button

The page is available only when the PHP plugin is enabled. The PHP plugin is bundled with PhpStorm and activated by default. If the plugin is disabled, enable it on the Installed tab of the Settings/Preferences | Plugins page, as described in Managing plugins.

Use this dialog to specify the delimiters to enclose Smarty tags in.

ItemDescription
Smarty left delimiterIn this field, specify the desired opening delimiter. By default, the field shows the opening curly brace {.
Smarty right delimiterIn this field, specify the desired closing delimiter. By default, the field shows the closing curly brace }.
Use Smarty3 whitespaces policy

When this checkbox is selected, delimiters followed by whitespace will not be parsed as template tags.

The checkbox is available when Smarty 3.0 or later is used.

Last modified: 26 August 2021