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

这篇具有很好参考价值的文章主要介绍了Visual Studio 2019 c++ 自定义注释 ----doxygen。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

 

Visual Studio 2019 c++ 自定义注释 ----doxygen,visual studio,c++,ide

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

Visual Studio 2019 c++ 自定义注释 ----doxygen,visual studio,c++,ide

 

<?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 }

 文章来源地址https://www.toymoban.com/news/detail-653722.html

到了这里,关于Visual Studio 2019 c++ 自定义注释 ----doxygen的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Visual Studio 2017工程在Visual Studio 2019打开碰到的问题

    Visual Studio 2017的工程可以正常使用,在Visual Studio 2019中打开碰到两个问题,Error code: 0x80004005 和 cannot open source file “xxx.h” ,解决了这两个问题。 参考Visual Studio 2017: Project is out of date with error (0x80004005) 假定是 HelloWorld 的工程,那么修改 HelloWorld.vcxproj 文件,将以下内容: P

    2024年02月05日
    浏览(50)
  • Visual Studio 2019 下载安装

    1、从官网下载最新版本 下载 Visual Studio Tools - 免费安装 Windows、Mac、Linux (microsoft.com) https://visualstudio.microsoft.com/zh-hans/downloads/ 2、Visual Studio 2019安装包网盘链接:       https://pan.baidu.com/s/13H6TfDU-uyLxJssERvXgTw?  pwd=1234            提取码:1234  1、存储路径找到下载文件,双击

    2024年02月07日
    浏览(61)
  • visual studio 2019 调试驱动

    搭建驱动开发环境 搭建环境需要两台机器,本地机器用来代码开发,一台虚拟机用来测试和安装驱动 ,搭建驱动开发环境参考。 visual studio 添加调试机器 驱动工程的属性 - Driver Installer - Deployment, 点击…按钮添加目标机器用来安装和测试驱动。 进入添加配置窗口,添加机器

    2024年02月07日
    浏览(37)
  • Visual Studio 2019使用详解

    VS2019(Visual Studio 2019)是由微软开发的集成开发环境(IDE),用于开发各种应用程序,包括桌面应用程序、Web应用程序、移动应用程序等。 对工具的熟悉程度有助于提升开发效率,磨刀不误砍柴功,花些时间学习工具使用很有必要 在菜单栏---工具---选项---环境---键盘 在键盘

    2024年02月11日
    浏览(40)
  • visual studio 2019恢复默认设置

    在使用microsoft visual studio的过程中,经常由于自己的一些sao操作,把窗口、字体、快捷键搞乱,怎么将microsoft visual studio恢复默认设置呢?其实很简单,那么今天小编就和大家一起分享将microsoft visual studio恢复默认设置的方法, 我们在使用 Visual Studio 的时候,常常有一些窗口不

    2024年02月03日
    浏览(40)
  • Visual Studio 2019创建 WebService

    使用Visual Studio 2019 创建一个演示的WebService,目的是学会创建一个Web Service(本例中使用的是ASPNET创建项目)。 创建项目,添加WebService接口 1. 创建一个web项目----创建ASP.NET Web APP 2. 输入项目名称,存储位置,解决方案名称 ​  3. 创建一个空白项目(选择空模板) 4. 给项目添加Web服

    2024年02月17日
    浏览(36)
  • Visual Studio 2019的安装教程

    注意:部分内容只面向学习C语言的同学    “Visual Studio Installer”相当于是安装助手 只是学习C语言的同学就只需要如图勾选 (右边的也需要勾选) 注:由于 VS2019 比较大建议安装在D盘,选择右上角的“安装位置”标签页来进行修改  可以在D盘新建一个“Visual Studio 2019”文

    2024年02月05日
    浏览(50)
  • Visual Studio2019 BackgoroundImageLayout属性

    背景图片重复:BackgroundImageLayout属性设置为Tile(默认) 背景图片左边显示:BackgroundImageLayout属性设置为None 背景图片右边显示:BackgroundImageLayout属性设置为None,同时RightToLeft属性设置为Yes 背景图片居中显示:BackgroundImageLayout属性设置为Center 背景图片拉申:BackgroundImageLayout属性

    2024年02月12日
    浏览(27)
  • Visual Studio 2019如何显示行号

    进入Visual Studio 2019,随便打开一个项目,点击“工具” 点击“选项” 点击“文本编辑器” 点击“所有语言” 点击“常规” 在右侧窗口,勾选“行号” 点击“确定”; 这样就显示行号了。

    2024年02月16日
    浏览(37)
  • visual studio 2019程序运行界面空白

    如果出现和我一样的情况visual studio 2019有时候程序运行界面空白,重启即可解决问题

    2024年02月11日
    浏览(39)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包