Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
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.

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="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <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 -->

Community Additions

© 2015 Microsoft