ReSharper
 
2024.3
Get ReSharper

Create a file template

Last modified: 11 February 2024

File templates are used to create one or more new files with predefined code, such as a type declaration, unit test, and so on. File templates have no shortcuts, they are identified by their descriptions. For more information, refer to Create files from templates and Create multi-file templates.

The body of a file template consists of plain text, which will appear as is, and parameters. The idea is to combine these to maximize efficiency when invoking the template.

When you invoke a command to apply a file template, the list of available templates is shown to you. We call it 'quick access list' or just 'quicklist'. You can edit this list to add your favorite templates there and/or rearrange their order.