· code-snippet vs visual studio tips and tricks

'Code Snippet – How to add to Visual Studio'

This post describes how you can add your own code snippets to Visual Studio.

Go to Tools > Code Snippets Manager

Select C# (presuming you want to add a snippet for C# ;) )

Click the Add button and browse to the location where your code snippet is stored. The file must end with .snippet

Now you can use the snippet by typing the shortcut in your C# class witch in this case is sglt:

After the snippet are inserted:

Pretty simple, right? :)

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket