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

Template parameters

Last modified: 11 February 2024

The body of a code template may contain:

  • Plain text that represents source code constructs and comments. It is inserted as is when you apply the template.

  • Template parameters that are replaced dynamically when you apply the template. A template parameter has the following format:

    $PARAM_NAME$ - where PARAM_NAME is an arbitrary identifier.

    When the format is correct, Templates Explorer window highlights predefined parameters in dark blue and other parameters in dark red:

    ReSharper: Template parameters