
1、首先进入文件夹:
C:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE\VC\Snippets52\Visual C++2、在该文件夹中创建xxx.snippet文件,编辑内容如下:
注:fuc是快捷方式
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets >
    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>fuc</Title>
            <Shortcut>fuc</Shortcut>
        </Header>
        <Snippet>
            <Code Language="cpp"><![CDATA[
/**************************************************
@brief   : none
@author  : none
@input   :none
@output  :none
@time    : none
**************************************************/
            ]]>
            </Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>3、这里我创建了add..snippet
进入 vs工具栏,后续操作步骤如下图:





OK,设置完成。
4、测试


发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/170517.html原文链接:https://javaforall.cn