VS设置C++代码注释模板

https://docs.microsoft.com/zh-cn/visualstudio/ide/walkthrough-creating-a-code-snippet?view=vs-2015&redirectedfrom=MSDN

https://blog.csdn.net/qq_40078121/article/details/79837673

<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets
    xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>CPPTemplate</Title>
            <Shortcut>CPPTemplate</Shortcut>
            <SnippetTypes>
                <SnippetType>Expansion</SnippetType>
                <SnippetType>SurroundsWith</SnippetType>
            </SnippetTypes>
        </Header>
        <Snippet>
            <Declarations>
                <Literal>
                    <ID></ID>
                    <ToolTip></ToolTip>
                    <Default></Default>
                </Literal>
            </Declarations>
            <Code Language="cpp">
                <![CDATA[//**********************
                // Method:    
                // Brief:    
                // Returns:    
                //**********************]]>
            </Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>

 

posted @ 2019-10-24 15:28  _离水的鱼  阅读(1836)  评论(0编辑  收藏  举报