다음을 통해 공유


Keywords 요소(IntelliSense 코드 조각)

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

<Keywords>
    <Keyword>... </Keyword>
    <Keyword>... </Keyword>
<Keywords>

특성 및 요소

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

특성

없음

자식 요소

요소

설명

키워드

선택적 요소입니다.

코드 조각에 대한 개별 키워드가 포함되어 있습니다. Keywords 요소에 Keyword 요소가 0개 이상 있을 수 있습니다.

부모 요소

요소

설명

Header

코드 조각에 대한 일반 정보가 포함되어 있습니다.

설명

코드 조각 키워드는 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>

참고 항목

개념

코드 조각 스키마 참조