views:

215

answers:

2

Anyone have a snippet (or know where one exists) to create snippets? I saw one in a video demo for Visual Studio snippets a few weeks ago, but I can't remember where it was.

+4  A: 

Snippet instructions:
http://msdn.microsoft.com/en-us/library/ms165394%28VS.80%29.aspx

Snippet example (snippet.snippet):
C:\Program Files\Microsoft Visual Studio 9.0\Xml\1033\Snippets\snippet.snippet

Jim Schubert
The question is not how to create a snippet, but if you know where a snippet to create a snippet is located.
Daniel
C:\Program Files\Microsoft Visual Studio 9.0\Xml\1033\Snippets\snippet.snippet is a snippet for creating snippets.
Jim Schubert
Hey Jim, if you put this comment in the answer itself, I'll vote you up and set it as the correct answer. Thanks man!
Daniel
did it, thanks.
Jim Schubert
Thanks Jim, you are now marked the correct answer :)
Daniel
+1  A: 

There are VS.NET addins that allow creating snippets from a piece of code you selected in the editor, with a nice designer and stuff. Google for it...

http://www.codeplex.com/SnippetEditor

Alex