使用VA快捷键快速添加注释

        写代码,不可避免的需要编写文件说明,手工编写带来的是效率与格式不统一的问题,使用VA快捷键来处理实在是最方便不过了。

        “VAssistX”–>”Visual VAssistX Options”然后选择Suggestions,再点击”Edit VA Snippets”。在打开的窗口中点击“新建”图标,在这就可以更改你的显示样式了。

// ------------------------------------------------------------------------
// 	Copyright   : Copyright(c) 2014-2016 www.**.com
// 	FileName    : $FILE_BASE$.$FILE_EXT$
// 	Author		: %USERNAME%
// 	Created		: $YEAR$/$MONTH$/$DAY$ $HOUR$:$MINUTE$:$SECOND$
// 	Revision	: $Revision: 1.0 $
// 	Memo		: $end$
// 	Summary		: $end$
// ------------------------------------------------------------------------

 

写函数功能的:

/// @brief		$end$
/// @param[in]	param1 : $end$
/// @param[out]	param2 : $end$
///	@remark		$end$
///	@return		$end$

 

Reserved StringMeaning
Date$DATE$Year/month/day formatted as %04d/%02d/%02d
 $DAY$Day of month formatted as %d
 $DAY_02$Day of month formatted as %02d
 $DAYNAME$Three-character abbreviation of day
 $DAYLONGNAME$Full name of day
 $MONTH$Month formatted as %d
 $MONTH_02$Month formatted as %02d
 $MONTHNAME$Three-character abbreviation of month
 $MONTHLONGNAME$Full name of month
 $YEAR$Year formatted as %d
 $YEAR_02$Year formatted as %02d
File$FILE$Full filename with path*
 $FILE_UPPER$Full filename with path in uppercase*
 $FILE_BASE$Filename without path or extension*
 $FILE_BASE_UPPER$Filename without path or extension in upper case*
 $FILE_EXT$Filename extension*
 $FILE_EXT_UPPER$Filename extension in upper case*
 $FILE_PATH$Path of file*
 $FILE_PATH_UPPER$Path of file in upper case*
General$clipboard$Current clipboard
 $end$Position of caret after expansion
 $selected$Current selection**
 $$$
GUID$GUID_DEFINITION$Generated GUID formatted for use in a definition
 $GUID_STRING$Generated GUID formatted for use in a string
 $GUID_STRUCT$Generated GUID formatted for use in a struct
 (Note that all instances of GUID reserved words will use a singe generated GUID.)
Refactor$GeneratedPropertyName$Property name generated during Encapsulate Field
 $MethodArg$One parameter of the method and its type
 $MethodArgName$One parameter of the method
 $MethodArgType$Type of one parameter of the method
 $MethodBody$Body of implementation
 $MethodQualifier$Optional qualifiers of method
 $ParameterList$Parameters separated by commas
 $SymbolContext$Context and name of method
 $SymbolName$Name of method
 $SymbolPrivileges$Access of method
 $SymbolStatic$Keyword static or blank
 $SymbolType$Return type of method
 $SymbolVirtual$Keyword virtual or blank
Time$HOUR$Hour formatted as %d
 $HOUR_02$Hour formatted as %02d
 $MINUTE$Minute formatted as %02d
 $SECOND$Second formatted as %02d

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

hellokandy

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值