SnippetTypes 요소(IntelliSense 코드 조각)

업데이트: 2007년 11월

개별 SnippetType 요소를 그룹화합니다.

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

특성 및 요소

다음 단원에서는 특성, 자식 요소 및 부모 요소에 대해 설명합니다.

특성

없음

자식 요소

요소

설명

SnippetType

선택적 요소입니다.

Visual Studio 2005에서 코드 조각을 코드에 삽입하는 방법을 지정합니다. SnippetTypes 요소에 SnippetType 요소가 0개 이상 있을 수 있습니다.

부모 요소

요소

설명

Header

코드 조각에 대한 일반 정보를 지정합니다.

설명

SnippetTypes 요소가 없으면 코드에서 원하는 곳에 코드 조각을 삽입할 수 있습니다.

예제

다음 예제에서 SnippetType 요소의 값은 Expansion입니다. 이것은 Visual Studio 2005가 코드 조각을 커서의 현재 위치에 삽입할 수 있음을 나타냅니다.

<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>

참고 항목

개념

코드 조각 스키마 참조