- macros
Ctrl + Shift + X
在扩展面板安装 macros ,安装完毕重新加载即可正常使用。
Settings 中编写自定义 macro
:
"macros": {
"end_cut-offRule": [ // 末尾加分割线
"cursorLineEnd",
{
"command": "type",
"args": {
"text": "//---------------------------------------- ----------------------------------------"
}
},
],
}
打开控制台插入快捷键:
{
"key": "ctrl+shift+/",
"command": "macros.end_cut-offRule"
}
最终完成如下图: