更新:2007 年 11 月
对各个 Keyword 元素进行分组。
<Keywords>
    <Keyword>... </Keyword>
    <Keyword>... </Keyword>
<Keywords>
属性和元素
以下几节描述了属性、子元素和父元素。
属性
无。
子元素
| 元素 | 说明 | 
|---|---|
| 可选的元素。 包含代码段的各个关键字。Keywords 元素中可能有零个或多个 Keyword 元素。 | 
父元素
| 元素 | 说明 | 
|---|---|
| 包含有关代码段的常规信息。 | 
备注
代码段关键字由 Visual Studio 使用,并表示联机内容提供程序用来添加用于搜索或分类的自定义关键字的标准方式。
示例
下面的代码段包含关键字 File copying 和 Copying files。
<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>