参考:https://blog.csdn.net/menghuangxiao/article/details/77245688
使用代码片段完成快速注释
使用方法:在vs中选择工具->代码片段管理器->导入
shortcut为快捷键设置
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2017/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>方法标准注释</Title>
<Shortcut>comment</Shortcut>
<Description>更新代码注释 的代码片段</Description>
<Author>leiyz</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>Summary</ID>
<ToolTip>摘要</ToolTip>
<Default>摘要说明</Default>
</Literal>
<Literal>
<ID>Param</ID>
<ToolTip>参数</ToolTip>
<Default></Default>
</Literal>
<Literal>
<ID>Retrun</ID>
<ToolTip>返回值</ToolTip>
<Default></Default>
</Literal>
<Literal>
<ID>UpdatedDate</ID>
<ToolTip>日期</ToolTip>
<Default>@@Today</Default>
</Literal>
<Literal>
<ID>Author</ID>
<ToolTip>作者</ToolTip>
<Default>auth</Default>
</Literal>
</Declarations>
<Code Language="cpp">
<![CDATA[
///----------------------------------------------------------------------------
///@brief
///
///@param
///@return
///@author :$Author$
///@date
///----------------------------------------------------------------------------
$end$ ]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>