简体   繁体   中英

In Visual Studio Code, can I change multiple keyboard shortcuts at once?

I want to change all default keyboard shortcuts starting with 'Ctrl + K' to something else (say 'Alt + K'). Is there any way in Visual Studio Code to do that at once?

I know that it can be done by selecting one Keyboard shortcut at a time, but is there a way to do this all at once, something similar to Find/Replace of keyboard shortcuts?

This might help:

  • f1 -> open keyboard shortcuts.
  • Press brackets button on top right.
  • Cut all of your preferences and save them in another file without the first and last square brackets.
  • First step again.
  • Search for ctrl k .
  • Select the first one - press and hold delete -> Delete all of them (This is easy!).
  • On the top right click on the brackets button. (Open keyboard shortcuts(json)).
  • Deleted shortcuts have been added to this file with a - behind them on the command value. Each have an opening bracket, key value, command value, and closing bracket.
  • Select one of the opening brackts, then press and hold ctrl + d .
  • Double press down arrow, then home button.
  • Delete the first - from all of the command values with this trick.
  • Then go to the key values and change them all to what you want. Please note that some of them may be in ctrl+k+... form, but some others in ctrl+alt+k+... or ctrl+shift+k+... form. You can't change them with this trick!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM