Using, Creating, and Managing Reusable Code Snippets

Like its predecessors (starting with Visual Studio 2005), Visual Studio 2015 provides support for reusable code snippets. The idea is that you can add into the code editor existing code snippets stored in external files with .Snippet extension, reachable from within Visual Studio (and integrated with the IDE) without the need of creating your custom archive. Another huge benefit of code snippets is that they can be shared with other developers allowing you and other friends to increase the code library. Code snippets support is offered in several ways, which are covered in this section.

Visual Studio Code Snippets

Visual Studio ships with a large number of code snippets ready for use. To ...

Get Visual Basic 2015 Unleashed 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.