How can I change keyboard shortcut bindings in Visual Studio Code?

前端 未结 7 1910
暗喜
暗喜 2020-12-12 18:38

I am using the recently updated Visual Studio Code v0.10.1, and I am wondering what is the procedure to:

  • Remap a built in command\'s keyboard shortcut. For

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 19:25

    On Windows:

    • go to File -> Preferences -> Keyboard shortcuts,
    • or press Ctrl+K, then Ctrl+S,
    • or edit %UserProfile%\AppData\Roaming\Code\User\keybindings.json file

    On Mac:

    • go to Code -> Preferences -> Keyboard shortcuts,
    • or press Cmd+K, then Cmd+S

    Keep in mind you can type things like shift ctrl c in the Search input in Keyboard Shortcuts panel to find commands by their keybindings.

    Here you can find documentation which among other stuff contains also information about what When conditions you can use.

提交回复
热议问题