Writing Snippets and Live Templates: Your Own C# and Angular Shortcuts in VS Code, Visual Studio and Rider
A snippet is the right tool for the small skeletons the language's syntax makes you type every time, not for repeated logic. We show VS Code snippets for Bookstore's xUnit v3 test, minimal API endpoint group, EF Core configuration and Angular 22 component, a transform that derives the namespace from the file path, the Visual Studio .snippet and Rider live template equivalents, and the .gitignore line that silently ignores the snippet file.
15 Nov 2026
·
12 min
·
5