When you type class and hit tab twice in the code editor, the specified code snippet for the shortcut will be added to your code. To add "for", your simply write for and hit the tab key twice.
If you want to add your own snippet to the IntelliTask feature, you can do it through the Code snippet manager. You define your own snippet within an XML file. If you haven't seen a defined snippet before, here is the Class snippet:
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippet Format="1.0.0">
<Header>
<Title>class</Title>
<Shortcut>class</Shortcut>
<Description>Expansion snippet for class</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal default="true">
<ID>name</ID>
<ToolTip>Class name</ToolTip>
<Default>MyClass</Default>
</Literal>
</Declarations>
<Code Language="csharp" Format="CData"><![CDATA[class $name$
{
$selected$$end$
}]]>
</Snippet>
</CodeSnippet
</code>
If you look in the template I have added to this post. You can se the <SnippetType> element, with this element you specify which type the snippet is, it could belongs to several of types. If the type is specified as Expansion, you could add the code snippet in the code editor, by pressing the tab key twice after you type in the name you have specified for the shortcut element in the template.
The Insert Expansion and Surround with menu option is part of the IntelliTask, please correct my, if I?m wrong.
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT
CornerstoneMy Blog, ASP.Net 2.0 etc