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, JetBrains Rider 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. JetBrains Rider allows you to streamline such tasks with Source Templates.