JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Reusable content in templates

Last modified: 11 October 2024

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 #parse directive has the following syntax:

For example:

Templates that can be referenced in this way in other templates are listed on the Includes tab of the Editor | File Templates | Other Languages settings page  CtrlAlt0S.