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

Create a file template

Last modified: 21 July 2022

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. See Create files from templates and Create multi-file templates for details.

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.