PhpStorm 2020.2 Help

Twig

File | Settings | Languages & Frameworks | PHP | Twig for Windows and Linux

PhpStorm | Preferences | Languages & Frameworks | PHP | Twig for macOS Ctrl+Alt+S the Settings/Preferences icon

Use this page to configure custom syntax for Twig templates.

ItemDescription
Tag block start /
Tag block end
In these fields, specify the syntax to use for tags. By default, the {% tag %} syntax is used.
Comment block start /
Comment block end
In these fields, specify the syntax to use for comments. By default, the {# comment #} syntax is used.
Variable block start /
Variable block end
In these fields, specify the syntax to use for the Variable blocks. By default, the {{ variable }} syntax is used.
Last modified: 08 May 2020