vs code 设置快捷键与eclipse一样

Posted on 2019-04-22 10:53  zkx4213  阅读(362)  评论(0编辑  收藏  举报

 

keybindings.json文件路径在:C:\Users\Administrator\AppData\Roaming\Code\User\keybindings.json

{ "key": "alt+/", "command": "editor.action.triggerSuggest","when": "editorTextFocus" }, // 触发显示
{ "key": "ctrl+alt+down","command": "editor.action.copyLinesDownAction", "when": "editorTextFocus" }, // 触发显示
{ "key": "ctrl+alt+up", "command": "editor.action.copyLinesUpAction", "when": "editorTextFocus" }, // 向上复制一行
{ "key": "shift+alt+r","command": "editor.action.rename","when": "editorTextFocus" }, // 重命名
{ "key": "ctrl+shift+c","command": "editor.action.commentLine","when": "editorTextFocus" }, // 注释行
{ "key": "ctrl+d","command": "editor.action.deleteLines","when": "editorTextFocus" }, // 删除行
{ "key": "ctrl+k","command": "editor.action.addSelectionToNextFindMatch","when": "editorFocus"}, // 添加选择到下一个查找匹配
{ "key": "ctrl+shift+f","command": "editor.action.format","when": "editorTextFocus"}, // 格式化
{ "key": "ctrl+shift+x","command": "editor.action.transformToUppercase","when": "editorTextFocus"}, // 转换为大写
{ "key": "ctrl+shift+y","command": "editor.action.transformToLowercase","when": "editorTextFocus"}, // 转换为小写
{ "key": "ctrl+shift+alt+x","command": "workbench.view.extensions" }, // 扩展(原ctrl+shift+x快捷键)
{ "key": "ctrl+shift+alt+y","command": "workbench.debug.action.toggleRepl"} // 切换Repl(原ctrl+shift+y快捷键)

Copyright © 2024 zkx4213
Powered by .NET 8.0 on Kubernetes