Friday, February 11, 2011

C# snippet to create snippets

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.

  • 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

    Daniel : The question is not how to create a snippet, but if you know where a snippet to create a snippet is located.
    Jim Schubert : C:\Program Files\Microsoft Visual Studio 9.0\Xml\1033\Snippets\snippet.snippet is a snippet for creating snippets.
    Daniel : 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!
    Jim Schubert : did it, thanks.
    Daniel : Thanks Jim, you are now marked the correct answer :)
  • 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

    From Alex

0 comments:

Post a Comment