[
// 删除选中行
{"key":"ctrl+e","command":"editor.action.deleteLines", "override":true},
// 在当前行下方插入空行并把光标移动到新行
{"key":"shift+enter","command":"editor.action.insertLineAfter", "override":true},
//选择行
{"key":"ctrl+d","command":"expandLineSelection", "override":true},
// 复制选中内容到下一行
{"key":"ctrl+shift+down","command":"editor.action.duplicate", "override":true},
// 当前行上移
{"key":"alt+shift+up","command":"editor.action.moveLinesUpAction", "override":true},
// 当前行下移
{"key":"alt+shift+down","command":"editor.action.moveLinesDownAction", "override":true},
// 光标移动到行尾
{"key":"ctrl+end","command":"cursorLineEnd", "override":true},
// 撤销
{"key":"ctrl+z","command":"undo", "override":true},
// 重做
{"key":"ctrl+y","command":"redo", "override":true},
// 格式化
{"key":"alt+shift+f","command":"editor.action.format","when":"!activeEditor.readonly && activeEditor.canFormat", "override":true},
// 注释
{"key":"ctrl+/","command":"editor.action.commentLine", "override":true},
// 缩进
{"key":"tab","command":"tab", "override":true},
// 消除缩进
{"key":"shift+tab","command":"outdent", "override":true},
// 全选
{"key":"ctrl+a","command":"editor.action.selectAll", "override":true},
// 向左选择
{"key":"shift+left","command":"cursorLeftSelect", "override":true},
// 向右选择
{"key":"shift+right","command":"cursorRightSelect", "override":true},
// 向上选择
{"key":"shift+up","command":"cursorUpSelect", "override":true},
// 向下选择
{"key":"shift+down","command":"cursorDownSelect", "override":true},
// 查找
{"key":"ctrl+f","command":"actions.find", "override":true},
// 区域查找
{"key":"ctrl+q","command":"actions.findinRegion", "override":true},
// 查找替换
{"key":"ctrl+h","command":"editor.action.startFindReplaceAction", "override":true},
// 在目录中查找
{"key":"ctrl+shift+f","command":"workbench.action.findInFiles", "override":true},
// 转到定义
{"key":"ctrl+b","command":"workbench.action.gotoDefinition", "override":true},
// 查找引用
{"key":"ctrl+shift+b","command":"workbench.action.gotoreference", "override":true},
// 选中相同语法词重命名
{"key":"ctrl+r","command":"editor.action.SelectSameWordByLan", "override":true},
// 保存
{"key":"ctrl+s","command":"workbench.action.files.save", "override":true},
// 另存
{"key":"ctrl+shift+s","command":"workbench.action.files.saveAs", "override":true},
// 全部保存
{"key":"ctrl+alt+s","command":"workbench.action.files.saveAll", "override":true},
// 打开文件历史记录
{"key":"ctrl+shift+h","command":"workbench.action.files.localHistory", "override":true},
// 显示项目管理器
{"key":"ctrl+shift+e","command":"workbench.view.explorer", "override":true},

{"key":"ctrl+c","command":"editor.action.clipboardCopyAction", "override":true},
{"key":"ctrl+c","command":"editor.action.clipboardCopyAction", "override":true},
{"key":"ctrl+x","command":"editor.action.clipboardCutAction", "override":true},
{"key":"ctrl+v","command":"editor.action.clipboardPasteAction", "override":true},
{"key":"ctrl+u","command":"editor.action.transformToUppercase", "override":true},
{"key":"ctrl+l","command":"editor.action.transformToLowercase", "override":true}
]

 

 

增加一个外部命令用来使用快捷键ctrl+;在行尾添加分号

[
    {
        "name": "插入;",
        "command":"脚本放置目录/semicolon.vbs",
        "type":"process",
        "key":"ctrl+;"
    }
]

semicolon.vbs:

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "{end};"

 

posted on 2023-05-13 12:04  lbnnbs  阅读(34)  评论(0编辑  收藏  举报