You can create your own fragments to do anything. Here is one that I used in VS2005 to create properties using support fields:
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>prop</Title>
<Shortcut>_prop</Shortcut>
<Description>Code snippet for a property</Description>
<Author>Andrew</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>type</ID>
<Default>String</Default>
<ToolTip>property type</ToolTip>
</Literal>
<Literal>
<ID>pname</ID>
<Default>_name</Default>
<ToolTip>private field name</ToolTip>
</Literal>
<Literal>
<ID>name</ID>
<Default>Name</Default>
<ToolTip>property name</ToolTip>
</Literal>
</Declarations>
<Code Language="csharp">
<![CDATA[$type$ $pname$;
public $type$ $name$
{
get { return this.$pname$; }
set { this.$pname$ = value; }
}$end$]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
Save this in a file with a name whatever.snippetin this place:
"C:\Documents and Settings\<YOU>\My Documents\Visual Studio 2005\Code Snippets\Visual C#\My Code Snippets"
source
share