Tuesday, October 13, 2009

Creating a code snippet in Visual Studio 2008

Step 1:

Download and install "Snipp Dogg - Visual Studio Intellisense" from http://www.codeplex.com/SnippDogg

Step 2:

a) Create new file.

b) Paste code.

c) Fill the two required fields. Shortcut and Title

snippet1

3) Save snippet file.

snippet2 

3) Import snippet file into Visual Studio.

Tools –> Code Snippets Manager

snippet3

Choose language
Import snippet

snippet4

snippet5

snippet6

4) Use snippet

Type the name of the shortcut name and then hit the tab button twice.

snippet7

snippet8 

Finished.

0 comments:

Post a Comment