Visual Studio Toolbox: Creating and Using Code Snippets
- Posted: Jun 08, 2011 at 9:32 AM
- 48,825 Views
- 20 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
In this episode, we explore code snippets, an underappreciated feature of Visual Studio.
Code snippets are existing pieces of code. All you have to do is type the snippets shortcut and Visual Studio writes the code for you. Watch as we first use a couple of snippets that ship with Visual Studio. Then, see how to use the Snippet Designer extension and create your own snippets. With this extension, you can highlight code, right-click, and Export as Snippet. Very cool!!