VS Code代码块变量
const snippetDes = [
"TM_SELECTED_TEXT",
"TM_CURRENT_LINE",
"TM_CURRENT_WORD",
"TM_LINE_INDEX",
"TM_LINE_NUMBER",
"TM_FILENAME",
"TM_FILENAME_BASE",
"TM_DIRECTORY",
"TM_FILEPATH",
"CLIPBOARD",
"CURRENT_YEAR",
"CURRENT_YEAR_SHORT",
"CURRENT_MONTH",
"CURRENT_MONTH_NAME",
"CURRENT_MONTH_NAME_SHORT",
"CURRENT_DATE",
"CURRENT_DAY_NAME",
"CURRENT_DAY_NAME_SHORT",
"CURRENT_HOUR",
"CURRENT_MINUTE",
"CURRENT_SECOND"
];
const snippetDes = [
"当前选定的文本或空字符串",
"当前行的内容",
"光标下的单词内容或空字符串",
"基于零索引的行号",
"基于单索引的行号",
"当前文档的文件名",
"没有扩展名的当前文档的文件名",
"当前文档的目录(DIRname)",
"当前文档的完整文件路径",
"剪贴板的内容",
"本年度(YYYY)",
"本年度的最后两位数",
"月份为两位数(例如'02')",
"月份的全名(例如'July')",
"月份的简称(例如'Jul')",
"这个月的哪一天(10)",
"一天的名字(例如'Monday')",
"当天的简称(例如'Mon')",
"24小时时钟格式的当前小时('14')",
"当前时间的——分钟('10')",
"当前时间的——秒('59')"
];
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
上次更新: 2023/10/16, 17:53:06 访问次数: 0