1、首先进入文件夹:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\Snippets\2052\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工具栏,后续操作步骤如下图:

   

vs2017设置快速添加函数注释说明

 

vs2017设置快速添加函数注释说明

vs2017设置快速添加函数注释说明

vs2017设置快速添加函数注释说明

vs2017设置快速添加函数注释说明

 OK,设置完成。

4、测试

vs2017设置快速添加函数注释说明

 

vs2017设置快速添加函数注释说明

 

 

相关文章:

  • 2022-12-23
  • 2021-06-23
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-08-02
猜你喜欢
  • 2021-07-14
  • 2021-06-23
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-07-04
相关资源
相似解决方案