Visual Studio Code自定义快捷键(eclipse习惯)

Posted pengyan5945

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Visual Studio Code自定义快捷键(eclipse习惯)相关的知识,希望对你有一定的参考价值。

左下角设置按钮 -> Keyboard Shortcuts -> 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": "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" },
    { "key": "ctrl+shift+alt+y","command": "workbench.debug.action.toggleRepl"},
]

参考地址:https://blog.csdn.net/zoujiawei6/article/details/85682649

以上是关于Visual Studio Code自定义快捷键(eclipse习惯)的主要内容,如果未能解决你的问题,请参考以下文章

在 Visual Studio Code 中创建自定义语言

在 Visual Studio Code 中自定义语法突出显示

如何自定义Visual Studio快捷方式

无法使用 Visual Studio Code 中的自定义库解析导入

如何在 Visual Studio Code 中放置自定义输入以进行调试

visual studio code教程:基础使用和自定义设置