On the File menu, click New and then click File.
-
Click XML File and then click Open.
-
On the File menu, click Save
. -
In the Save as type box, select All Files (*.*).
-
In the File name box, enter a file name with the .snippet file name extension.
-
Click Save.
<codesnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> <codesnippet format="1.0.0">
<header>
<title> My Snippet </title>
</header>
<snippet>
<references>
<reference>
<assembly>System.Windows.Forms.dll</assembly>
</reference>
</references>
<code language="CSharp">
<!--[CDATA[if (jo != null)]]-->
</code>
</snippet>
My Snippet
To add into your Code Snippets Manager
-
In the Language list, select the language that you want to add a directory to.
-
Click Add. This opens the Code Snippets Directory window.
-
Select the directory that you want to add to the Code Snippets Manager and click OK.The directory will now be used to search for available code snippets.
Useful links....
Create: http://msdn.microsoft.com/en-us/library/ms165394.aspx
Add to manager: http://msdn.microsoft.com/en-us/library/9ybhaktf.aspx
No comments:
Post a Comment