Creating your own snippets
Visual Studio snippets are a great way to quickly write repetitive chunks of code that follow the same basic structure—potentially, saving you from a lot of time and typing. Snippets have been extended to work on more than just standard code files, and should be considered whenever you find yourself writing similar code over and over. Using snippets can save time and reduce the possibility of bugs—simply write the code correctly once, and then reuse.
For example, you may want to generate a class signature that inherits from a specific base class you use in your application, or you may have a certain attribute that needs to be placed above method calls to enable logging, or you may have specific IDs you want to use in HTML elements to ensure CSS styles can be consistently applied to your web pages. Unfortunately, out-of-the-box Visual Studio still doesn't have an inbuilt way of authoring snippets, so you will have to write some XML. Fortunately, it only takes a few...