Reusable content in templates
Include templates are used to define reusable pieces of code (for example, standard headers, copyright statements, and so on) to be inserted in other templates by means of the
#parse directives. The built-in PHP include templates are intended for generating file headers and PHPDoc documentation comments. You can also define your own custom templates.
#parse directive has the following syntax:
#parse("PHP File Header.php")...
Templates that can be referenced in this way in other templates are listed on the Includes tab of the page of PhpStorm settings (Ctrl+Alt+S).
To create an include template
Press Ctrl+Alt+S to open the Settings/Preferences dialog and then go to .
Open the Includes tab.
Click Create Template on the toolbar and specify the include template name, extension, and body.
To insert a reusable template into another template
#parsedirective with the name of the include template that you want to insert. For an example, see template syntax.