自定义Visual Assist X Snippets 宏

来源:互联网 发布:mac桌面保护程序闪退 编辑:程序博客网 时间:2024/05/21 10:43

 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 %02d12Time$HOUR$Hour formatted as %d11 $HOUR_02$Hour formatted as %02d11 $MINUTE$Minute formatted as %02d33 $SECOND$Second formatted as %02d20File$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\MESSAGEGeneral$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 snippetsRefactor$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 0
原创粉丝点击