Using, Creating, and Managing Reusable Code Snippets

Like its predecessors, starting with Visual Studio 2005, Visual Studio 2010 also provides support for reusable code snippets. The most important addition to the new version is the support for HTML, ASP.NET, and SQL code snippets. The idea is that you can add into the code editor existing code snippets stored in external files with the .Snippet extension, which you can reach 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, so that you and other friends can increase the code library. Code snippets support is offered in several ways, which is covered ...

Get Visual Basic® 2010 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.