SnippetTypes Element (IntelliSense Code Snippets)
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

SnippetTypes Element (IntelliSense Code Snippets) 

Groups individual SnippetType elements.

    <SnippetType>... </SnippetType>
    <SnippetType>... </SnippetType>

The following sections describe attributes, child elements, and parent elements.



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.

If the SnippetTypes element is not present, the code snippet can be inserted anywhere in the code.

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="">
    <CodeSnippet Format="1.0.0">
            <Title>Copy File</Title>
            <Author>Microsoft Corporation</Author>
            <Description>Copies a file and saves it as another file.</Description>
                 <Keyword>File copying</Keyword>
                 <Keyword>Copying files</Keyword>
            <!-- Insert snippet information here -->
© 2015 Microsoft