您的当前位置:首页正文

Visual Assist X语法关键字

2024-09-13 来源:小奈知识网
Type your expanded code into the Code field. Include reserved strings to expand the date, filename and more. Date

Time File

Reserved String $DATE$ $DATE_LOCALE$ $DAY$ $DAY_02$ $DAYNAME$ $DAYLONGNAME$ $MONTH$ $MONTH_02$ $MONTHNAME$ $MONTHLONGNAME$ $YEAR$ $YEAR_02$ $HOUR$ $HOUR_02$ $MINUTE$ $SECOND$ $FILE$ $FILE_UPPER$ $FILE_BASE$ $FILE_BASE_UPPER$ $FILE_EXT$ $FILE_EXT_UPPER$

Meaning

Year/month/day formatted as %04d/%02d/%02d Current date in locale format Day of month formatted as %d Day of month formatted as %02d Day abbreviation in locale format Full name of day in locale format Month formatted as %d Month formatted as %02d

Month abbreviation in locale format Full name of month in locale format Year formatted as %d Year formatted as %02d Hour formatted as %d Hour formatted as %02d Minute formatted as %02d Second formatted as %02d Full filename with path*

Full filename with path in uppercase* Filename without path or extension*

Filename without path or extension in upper case* Filename extension*

Filename extension in upper case*

General

$FILE_PATH$ $FILE_PATH_UPPER$ $clipboard$ $end$ $selected$

Path of file*

Path of file in upper case* Current clipboard

Position of caret after expansion Current selection** Literal '$' character Name of containing method Method parameters Name of containing class

Name of base class of containing class Fully qualified namespace name

Generated GUID formatted for use in a definition Generated GUID formatted for use in a string Generated GUID formatted for use in a struct Generated GUID formatted with underscores Uppercase version of $GUID_STRING$ Uppercase version of $GUID_STRUCT$ Uppercase version of $GUID_SYMBOL$

$$

Symbol Context $MethodName$

GUID

Refactor

$MethodArgs$ $ClassName$ $BaseClassName$ $NamespaceName$ $GUID_DEFINITION$ $GUID_STRING$ $GUID_STRUCT$ $GUID_SYMBOL$ $GUID_STRING_UPPER$ $GUID_STRUCT_UPPER$ $GUID_SYMBOL_UPPER$

The following reserved strings are available only in refactoring snippets $GeneratedPropertyName$ Property name generated during Encapsulate Field

$generatedPropertyName$ Same as $GeneratedPropertyName$ but with lower-case first letter $MethodArg$ $MethodArgName$ $MethodArgType$

One parameter of the method and its type One parameter of the method Type of one parameter of the method

$MethodBody$ $MethodQualifier$ $ParameterList$ $SymbolContext$ $SymbolName$ $SymbolPrivileges$ $SymbolStatic$ $SymbolType$ $SymbolVirtual$

Body of implementation Optional qualifiers of method Parameters separated by commas Context and name of method Name of method Access of method Keyword static or blank Return type of method Keyword virtual or blank

因篇幅问题不能全部显示,请点此查看更多更全内容