visual-studio-code - Visual Studio Code - 多个键盘快捷键?

标签 visual-studio-code

有没有办法在 VS 代码中为一个操作设置两个键盘快捷键?例如,我想通过按左箭头键或 Alt+A 将光标向左移动。

最佳答案

Edit: Starting from 1.52 it's possible from keybindings GUI:


keybindings gui context menu add keybinding

是什么阻止你编辑 keybindings.json ?
{
    "key": "left",
    "command": "cursorLeft",
    "when": "textInputFocus"
},
{
    "key": "alt+a",
    "command": "cursorLeft"
}
它可以从命令面板 Preferences: Open Keyboard Shortcuts (JSON) 打开
或者通过单击键绑定(bind) GUI 页面中的文件图标:
enter image description here

关于visual-studio-code - Visual Studio Code - 多个键盘快捷键?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45383882/

相关文章:

python - 每次都下载visual studio code python语言服务器?

windows - 如何在同一实例中打开 VSCode 中的另一个文件夹?

visual-studio-code - 我无法在从 TFS checkout 的 Visual Studio Code 中保存文件

f# - WebSharper F# - 如何运行使用 VS Code 和 Ionide 创建的模板项目?

html - VSCode EJS 扩展,禁用 HTML 自动完成

angular - 如何在 Mac 上使用 Visual Studio Code 将 Azure 发布设置文件导入到 Angular 项目?

linux - Visual Studio 代码调试器错误 : "Could not find the task ' gcc build active file'

c - 如何在 C 文件中通过 F12 或 Ctrl-Shift-O 使用 JUMP 功能?

javascript - tslint.json 在 VS 代码中不起作用

typescript - 如何在 VsCode 中禁用自动导入语句 2017 年 10 月