va宏及環境變量的記錄
1Date
2 $DATE$ Year/month/day formatted as %04d/%02d/%02d
3 $DAY$ Day of month formatted as %d
4 $DAY_02$ Day of month formatted as %02d
5 $DAYNAME$ Three-character abbreviation of day
6 $DAYLONGNAME$ Full name of day
7 $MONTH$ Month formatted as %d
8 $MONTH_02$ Month formatted as %02d
9 $MONTHNAME$ Three-character abbreviation of month
10 $MONTHLONGNAME$ Full name of month
11 $YEAR$ Year formatted as %d
12 $YEAR_02$ Year formatted as %02d
13Time $HOUR$ Hour formatted as %d
14 $HOUR_02$ Hour formatted as %02d
15 $MINUTE$ Minute formatted as %02d
16 $SECOND$ Second formatted as %02d
17File
18 $FILE$ Full filename with path*
19 $FILE_UPPER$ Full filename with path in uppercase*
20 $FILE_BASE$ Filename without path or extension*
21 $FILE_BASE_UPPER$ Filename without path or extension in upper case*
22 $FILE_EXT$ Filename extension*
23 $FILE_EXT_UPPER$ Filename extension in upper case*
24 $FILE_PATH$ Path of file*
25 $FILE_PATH_UPPER$ Path of file in upper case*
26General
27 $clipboard$ Current clipboard
28 $end$ Position of caret after expansion
29 $selected$ Current selection**
30 $$ Literal '$' character
31Symbol Context
32 $MethodName$ Name of containing method
33 $MethodArgs$ Method parameters
34 $ClassName$ Name of containing class
35 $BaseClassName$ Name of base class of containing class
36 $NamespaceName$ Name of innermost containing namespace
37GUID
38 $GUID_DEFINITION$ Generated GUID formatted for use in a definition
39 $GUID_STRING$ Generated GUID formatted for use in a string
40 $GUID_STRUCT$ Generated GUID formatted for use in a struct
41 Refactor
42 $GeneratedPropertyName$ Property name generated during Encapsulate Field
43 $MethodArg$ One parameter of the method and its type
44 $MethodArgName$ One parameter of the method
45 $MethodArgType$ Type of one parameter of the method
46 $MethodBody$ Body of implementation
47 $MethodQualifier$ Optional qualifiers of method
48 $ParameterList$ Parameters separated by commas
49 $SymbolContext$ Context and name of method
50 $SymbolName$ Name of method
51 $SymbolPrivileges$ Access of method
52 $SymbolStatic$ Keyword static or blank
53 $SymbolType$ Return type of method
54 $SymbolVirtual$ Keyword virtual or blank
另外,參考官方網站http://www.wholetomato.com/products/features/vasnippets.asp學習更多。。
最后的最后是系統環境常用的變量(也許有用):
WINDOWS系統變量 ALLUSERSPROFILE=H:\Documents and Settings\All Users //所有用戶的PROFILE路徑 APPDATA=H:\Documents and Settings\Administrator\Application Data //當前用戶的應用程序路徑 ClusterLog=H:\WINDOWS\Cluster\cluster.log //集群日志路徑 CommonProgramFiles=H:\Program Files\Common Files //應用程序公用的文件路徑 COMPUTERNAME=E2003 //計算機名稱 ComSpec=H:\WINDOWS\system32\cmd.exe //當前的命令解釋器 HOMEDRIVE=H: //當前用戶的主盤 HOMEPATH=\Documents and Settings\Administrator //當前用戶的主目錄 LOGONSERVER=\E2003 //登錄的服務器 NUMBER_O_PROCESSORS=1 //當前計算機的處理器數字 OS=Windows_NT //當前系統的內核 Path=H:\Program Files\Support Tools\;H:\WINDOWS\system32; //學過DOS的都知道 PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH //以前DOS下默認的是COM,EXE,BAT,現在已經有這么多了喲,以前都不知道,腳本都可以不打擴展名了 PROCESSOR_ARCHITECTURE=x86 //處理器架構 PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 3, GenuineIntel //處理器標識符 PROCESSOR_LEVEL=15 //沒注意過,不知道有什么用 PROCESSOR_REVISION=0103 //版本? ProgramFiles=H:\Program Files //應用程序的默認安裝目錄 PROMPT=$P$G //學過DOS的都知道 SESSIONNAME=Console //會話名稱? SystemDrive=H: //系統所在的盤符 SystemRoot=H:\WINDOWS //系統所在的目錄 TEMP=H:\DOCUME~1\ADMINI~1\LOCALS~1\Temp //當前用戶的臨時目錄 TMP=H:\DOCUME~1\ADMINI~1\LOCALS~1\Temp //同上 USERDNSDOMAIN=MCSE.COM //當前用戶所在的域的DNS表示 USERDOMAIN=MCSE //NETBIOS表示 USERNAME=administrator //當前用戶名 USERPROFILE=H:\Documents and Settings\Administrator //當前用戶的配置文件目錄 windir=H:\WINDOWS //windows所在的目錄,總是跟systemroot一樣
posted on 2011-04-13 11:22 Robertxiao 閱讀(143) 評論(0) 編輯 收藏 引用