Visual Studio 2019 c++ 自定义注释 ----doxygen

 

可加入C++ 也可自定义。 

 

<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>注释</Title>
			<Shortcut>cannt</Shortcut>
			<Description>文件统一注释</Description>
			<Author>ly</Author>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
				<SnippetType>SurroundsWith</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>fileName</ID>
					<ToolTip>文件名</ToolTip>
					<Default>xxxxxx</Default>
				</Literal>
			</Declarations>
			<Code Language="cpp"><![CDATA[
 /**
  * @file     	$fileName$cpp
  * @author   	ly
  * @email   	Jones_Lee3@163.com
  * @version	V4.01
  * @date    	07-DEC-2017
  * @license  	GNU General Public License (GPL)  
  * @brief   	Universal Synchronous/Asynchronous Receiver/Transmitter 
  * @detail		detail
  * @attention
  *  This file is part of OST.                                                  \n                                                                  
  *  This program is free software; you can redistribute it and/or modify 		\n     
  *  it under the terms of the GNU General Public License version 3 as 		    \n   
  *  published by the Free Software Foundation.                               	\n 
  *  You should have received a copy of the GNU General Public License   		\n      
  *  along with OST. If not, see <http://www.gnu.org/licenses/>.       			\n  
  *  Unless required by applicable law or agreed to in writing, software       	\n
  *  distributed under the License is distributed on an "AS IS" BASIS,         	\n
  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  	\n
  *  See the License for the specific language governing permissions and     	\n  
  *  limitations under the License.   											\n
  *   																			\n
  * @htmlonly 
  * <span style="font-weight: bold">History</span> 
  * @endhtmlonly 
  * Version|Auther|Date|Describe
  * ------|----|------|-------- 
  * V3.3|Jones Lee|07-DEC-2017|Create File
  * <h2><center>&copy;COPYRIGHT 2017 WELLCASA All Rights Reserved.</center></h2>
  */  
			]]>
			</Code>
		</Snippet>
	</CodeSnippet>
</CodeSnippets>
命令  字段名语法
@file 文件名  file [< name >]
@brief 简介  brief { brief description }
     
    
    
@author     
 
作者  author { list of authors }
@mainpage       
 
主页信息 mainpage [(title)]
@date       
 
年-月-日 date { date description }
@author    
 
 版本号  version { version number }
@copyright      
 
版权 copyright { copyright description }
@param       
 
 参数param [(dir)] < parameter-name> { parameter description }
@return    
 
返回   return { description of the return value }
@retval        
 
返回值retval { description }
@bug      
 
漏洞  bug { bug description }
@details        
 
细节details { detailed description }
@pre        
 
前提条件pre { description of the precondition }
@see        
 
参考see { references }
@link    连接(与@see类库,{@link http://www.google.com})   link < link-object>
 
@throw     
 
异常描述  throw < exception-object> { exception description }
@todo     
 
待处理  todo { paragraph describing what is to be done }
@warning      
 
警告信息  warning { warning message }
@deprecated     
 
弃用说明。可用于描述替代方案,预期寿命等  deprecated { description }
@example      示例。deprecated { description }

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值