SnippetTypes Element (IntelliSense Code Snippets)
Groups individual SnippetType elements.
<CodeSnippets>
<CodeSnippet>
<Header>
<SnippetTypes>
<SnippetTypes>
<SnippetType>... </SnippetType>
<SnippetType>... </SnippetType>
<SnippetTypes>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
Element |
Description |
---|---|
Optional element. Specifies how Visual Studio 2005 inserts the code snippet into the code. There may be zero or more SnippetType elements in a SnippetTypes element. |
Parent Elements
Element |
Description |
---|---|
Specifies general information about the code snippet. |
Remarks
If the SnippetTypes element is not present, the code snippet can be inserted anywhere in the code.
Example
The value of the SnippetType element in the following example is Expansion. This indicates that Visual Studio 2005 can insert the code snippet at the current position of the cursor.
<CodeSnippets xmlns="https://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Copy File</Title>
<Author>Microsoft Corporation</Author>
<Description>Copies a file and saves it as another file.</Description>
<HelpUrl>www.microsoft.com</HelpUrl>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Keywords>
<Keyword>File copying</Keyword>
<Keyword>Copying files</Keyword>
</Keywords>
<Shortcut>copyfile</Shortcut>
</Header>
<Snippet>
<!-- Insert snippet information here -->
</Snippet>
</CodeSnippet>
</CodeSnippets>