?文章來源:http://www.zghlxwxcb.cn/news/detail-653722.html
可加入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>文件統(tǒng)一注釋</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>©COPYRIGHT 2017 WELLCASA All Rights Reserved.</center></h2>
*/
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
命令?? | 字段名 | 語(yǔ)法 |
---|---|---|
@file? | 文件名? | ?file [< name >] |
@brief? | 簡(jiǎn)介? | ?brief { brief description } |
??? ? ? ?? ? ?? @author?? ?? ? |
作者? | ?author { list of authors } |
@mainpage?? ?? ? ? |
主頁(yè)信息? | mainpage [(title)] |
@date?? ?? ? ? |
年-月-日? | date { date description } |
@author?? ? ? |
?版本號(hào)?? | version { version number } |
@copyright?? ??? ? |
版權(quán) | ?copyright { copyright description } |
@param?? ?? ? ? |
?參數(shù) | param [(dir)] < parameter-name> { parameter description } |
@return?? ? ? |
返回?? | ?return { description of the return value } |
@retval?? ??? ? ? |
返回值 | retval { description } |
@bug?? ? ? ? |
漏洞?? | bug { bug description } |
@details?? ??? ? ? |
細(xì)節(jié) | details { detailed description } |
@pre?? ??? ? ? |
前提條件 | pre { description of the precondition } |
@see?? ??? ? ? |
參考 | see { references } |
@link?? ? | 連接(與@see類庫(kù),{@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?? ?? ? |
棄用說明??捎糜诿枋鎏娲桨?,預(yù)期壽命等? | ?deprecated { description } |
@example?? ? ? | 示例。 | deprecated { description } |
?文章來源地址http://www.zghlxwxcb.cn/news/detail-653722.html
到了這里,關(guān)于Visual Studio 2019 c++ 自定義注釋 ----doxygen的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!