Reserved String | Meaning | 中文 | |
---|---|---|---|
Date | $DATE$ | Year/month/day formatted as %04d/%02d/%02d | 2012/07/03 |
$DATE_LOCALE$ | Current date in locale format | 2012-7-3 | |
$DAY$ | Day of month formatted as %d | 3 | |
$DAY_02$ | Day of month formatted as %02d | 03 | |
$DAYNAME$ | Day abbreviation in locale format | 星期二 | |
$DAYLONGNAME$ | Full name of day in locale format | 星期二 | |
$MONTH$ | Month formatted as %d | 7 | |
$MONTH_02$ | Month formatted as %02d | 07 | |
$MONTHNAME$ | Month abbreviation in locale format | 七月 | |
$MONTHLONGNAME$ | Full name of month in locale format | 七月 | |
$YEAR$ | Year formatted as %d | 2012 | |
$YEAR_02$ | Year formatted as %02d | 12 | |
Time | $HOUR$ | Hour formatted as %d | 11 |
$HOUR_02$ | Hour formatted as %02d | 11 | |
$MINUTE$ | Minute formatted as %02d | 33 | |
$SECOND$ | Second formatted as %02d | 20 | |
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 definition | GUID定义,“,”分割 |
$GUID_STRING$ | Generated GUID formatted for use in a string | GUID字符串,“-”分割 | |
$GUID_STRUCT$ | Generated GUID formatted for use in a struct | GUID结构 | |
$GUID_SYMBOL$ | Generated GUID formatted with underscores | GUID符号,"_"分割 | |
$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 blank | static | |
$SymbolType$ | Return type of method | 函数返回类型 | |
$SymbolVirtual$ | Keyword virtual or blank | virtual |
备注:
如果$参数没有定义相应的宏,则VA会跳出输入框,提示用户输入相应值。