自定义Visual Assist X Snippets 宏

 Reserved StringMeaning中文
Date$DATE$Year/month/day formatted as %04d/%02d/%02d2012/07/03
 $DATE_LOCALE$Current date in locale format2012-7-3
 $DAY$Day of month formatted as %d3
 $DAY_02$Day of month formatted as %02d03
 $DAYNAME$Day abbreviation in locale format星期二
 $DAYLONGNAME$Full name of day in locale format星期二
 $MONTH$Month formatted as %d7
 $MONTH_02$Month formatted as %02d07
 $MONTHNAME$Month abbreviation in locale format七月
 $MONTHLONGNAME$Full name of month in locale format七月
 $YEAR$Year formatted as %d2012
 $YEAR_02$Year formatted as %02d12
Time$HOUR$Hour formatted as %d11
 $HOUR_02$Hour formatted as %02d11
 $MINUTE$Minute formatted as %02d33
 $SECOND$Second formatted as %02d20
File$FILE$Full filename with path*e:\workspace\GameEngine1.0\Message\Snippets.cc
 $FILE_UPPER$Full filename with path in uppercase*E:\WORKSPACE\GAMEENGINE1.0\MESSAGE\SNIPPETS.CC
 $FILE_BASE$Filename without path or extension*Snippets
 $FILE_BASE_UPPER$Filename without path or extension in upper case*SNIPPETS
 $FILE_EXT$Filename extension*cc
 $FILE_EXT_UPPER$Filename extension in upper case*CC
 $FILE_PATH$Path of file*e:\workspace\GameEngine1.0\Message
 $FILE_PATH_UPPER$Path of file in upper case*E:\WORKSPACE\GAMEENGINE1.0\MESSAGE
General$clipboard$Current clipboard当前剪贴板内容
 $end$Position of caret after expansion输入完成光标位置
 $selected$Current selection**选定内容
 $$Literal '$' character$转义
Symbol Context$MethodName$Name of containing method 
 $MethodArgs$Method parameters函数参数列表
 $ClassName$Name of containing class类名称
 $BaseClassName$Name of base class of containing class基类名称
 $NamespaceName$Fully qualified namespace name命名空间
GUID$GUID_DEFINITION$Generated GUID formatted for use in a definitionGUID定义,“,”分割
 $GUID_STRING$Generated GUID formatted for use in a stringGUID字符串,“-”分割
 $GUID_STRUCT$Generated GUID formatted for use in a structGUID结构
 $GUID_SYMBOL$Generated GUID formatted with underscoresGUID符号,"_"分割
 $GUID_STRING_UPPER$Uppercase version of $GUID_STRING$
 $GUID_STRUCT_UPPER$Uppercase version of $GUID_STRUCT$
 $GUID_SYMBOL_UPPER$Uppercase version of $GUID_SYMBOL$
 The following reserved strings are available only in refactoring snippets
Refactor$GeneratedPropertyName$Property name generated during Encapsulate Field与类属性同名的访问方法(Java Set/Get)
 $generatedPropertyName$Same as $GeneratedPropertyName$ but with lower-case first letter
 $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 blankstatic
 $SymbolType$Return type of method函数返回类型
 $SymbolVirtual$Keyword virtual or blankvirtual

备注:

如果$参数没有定义相应的宏,则VA会跳出输入框,提示用户输入相应值。

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值