Chapter 5: Working with Snippets
IntelliSense code snippets, or simply snippets for short, provide a way for developers to quickly insert customizable fragments of text (that is, code or comments) into project files. The use of snippets accelerates the creation of boilerplate code for things such as property creation, try/catch blocks, switch statements, and looping structures. Although snippets are usually designed for small needs such as adding a single property or method, they can also be used to insert entire classes.
In this chapter, we'll look at out-of-the-box snippets and then dissect a custom snippet. Once we demystify them, you will see how easy it is to make and import your own creations. We hope this chapter inspires you to think ...
Get Visual Studio 2019 Tricks and Techniques now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.