Ctrl + Shift + X
在扩展面板安装 macros 我装的是1.2.1版
2. settings.json里加入代码
"macros": {
"end_semicolon": [ // 末尾加分号
"cursorLineEnd",
{
"command": "type",
"args": {
"text": ";"
}
},
],
"end_colon": [ // 末尾加逗号
"cursorLineEnd",
{ "command": "type",
"args": {
"text": ","
}
},
],
}
3. 键盘快捷方式里加入代码 key的值自己选
{
"key": "ctrl+alt+enter",
"command": "macros.end_semicolon"
},
{
"key": "ctrl+alt+,",
"command": "macros.end_colon"
},
版权声明:本文为qq_39383675原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。