ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

List of template macros

Last modified: 21 July 2022

When you apply code templates, ReSharper initializes template parameters with some values. To calculate these values, it uses template macros, which can retrieve a lot of useful data based on the surrounding context, For instance, current filename, current solution name, containing namespace, clipboard content, and so on. Even more, macros can invoke code completion actions, guess and suggest types, variables, tags, and more.

Here is the full list of template macros provided by ReSharper: