Whenever I want to create a code snippet I usually take an already created one and change the XML file to suit my needs, well NO MORE!!!!
introducing Snippy the Code snippet editor, creating code snippets was never so Easy!!!
let's check out the tool with a snippet I wrote for a class with one variable including a constructor and a property for that variable.
It's so easy, you just give it a shortcut to use in Visual Studio, add the literals you want to use and then write the code you need using the literals. When you are done just save it in your Visual Studio Custom Snippets folder, which is usually : "C:\Documents and Settings\<USERNAME>\My Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets", and that's it. Next time you run Visual Studio type in the shortcut and let the magic begin... :)
the out put of this snippet is this:
<?xml version="1.0" encoding="utf-8"?>
<Description>template for class with one variable</Description>
<Code Language="csharp"><![CDATA[public class $ClassName$
private $Type1$ $Member1$;
public $Type1$ $MemberPropName$
public $ClassName$($Type1$ newMember)
$Member1$ = newMember;
Not very friendly right? let's just have snippy do all the work...
You can download it here:
hope you Enjoy this