ReSharper
 
2024.3
Get ReSharper

Source templates

Last modified: 11 February 2024

Traditionally, templates or snippets are stored and managed outside your source code. This makes sense because normally a template helps you quickly produce some universal boilerplate code. For these purposes, ReSharper provides a lot of predefined live templates, surround templates, and file templates. You can also create your own templates of these types.

However, you may want to produce some repeatable code that is only relevant in your current project or solution. ReSharper allows you to streamline such tasks with Source Templates.

This feature is supported in the following languages and technologies: