当前位置: 首页 > news >正文

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 }

 

http://www.lryc.cn/news/127149.html

相关文章:

  • 面试题. 零矩阵
  • 易语言下载器
  • 原生js获取今天、昨天、近7天的时间(年月日时分秒)
  • 最强自动化测试框架Playwright(29)-文件选择对象
  • 【烂尾】K8S部署
  • 电机故障诊断(python程序,模型为MSCNN结合LSTM结合注意力机制模型,有注释)
  • 二叉树(ACM版)
  • Scratch 之 如何制作鼠标框(2)—— 鼠标框框定角色
  • 爬虫逆向实战(九)--猿人学第十三题
  • NeuralNLP-NeuralClassifier的使用记录(一),训练预测自己的【英文文本多分类】
  • Pycharm社区版连接WSL2中的Mysql8.*
  • 前端传递参数时,form-data 和 json 的区别
  • FairyGUI-Unity侧菜单扩展
  • 学习笔记十八:污点、容忍度
  • amis百度前端框架,在js中使用amis写json转页面
  • openEuler安装jdk、openEuler离线安装jdk、openEuler设置jdk、openEuler在线安装
  • Photoshop制作漂亮光泽感3D按钮
  • 【网络爬虫】模拟登录与代理
  • 无线局域网基础知识与架构
  • uniapp tabbar 浏览器调试显示 真机不显示
  • 极智AI | 地平线BPU跑通YOLOv5
  • 循环服务器(同时连接多个客户端,为每个客户端创建一个子进程处理其消息)
  • 【从零学习python 】38.Python包的使用及导入方式
  • docker 容器满了常用处理方法
  • 28、springboot的静态模版(前端页面)重加载和 devtools开发者工具
  • [FPGA IP系列] FPGA常用存储资源大全(RAM、ROM、CAM、SRAM、DRAM、FLASH)
  • Spark SQL优化:NOT IN子查询优化解决
  • 代码审计-java项目-组件漏洞审计
  • 接口测试的测试用例该怎么写呢
  • C语言例题讲解(if语句,循环语句,函数)