Can I define custom "surround with" templates in Visual Studio 2008? -
Can I define a "custom template" template in Visual Studio 2008?
Here you can go, this {}
/ P>
An example is to set everything selected inside, codesnipet manager.
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; CodeSnippets xmlns = "http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet" & gt; & Lt; CodeEncip format = "1.0.0" & gt; & Lt; Header & gt; & Lt; Title & gt; {} & Lt; / Title & gt; & Lt; Shortcut & gt; {} & Lt; / Shortcuts & gt; & Lt; Details & gt; {} & Lt; for code snippet / Description & gt; & Lt; Author & gt; Sergio & lt; / Author & gt; & Lt; SnippetTypes & gt; & Lt; SnippetType & gt; Expansion & lt; / SnippetType & gt; & Lt; SnippetType & gt; SurroundsWith & lt; / SnippetType & gt; & Lt; / SnippetTypes & gt; & Lt; / Header & gt; & Lt; Snippet & gt; & Lt; Code language = "csharp" & gt; & Lt ;! [CDATA [{$ $ $ $ $ end $}]] & gt; & Lt; / Code & gt; & Lt; / Snippet & gt; & Lt; / CodeSnippet & gt; & Lt; / CodeSnippets & gt;
Comments
Post a Comment