简体   繁体   中英

Visual studio code - removed keyboard shortcut

I accidentally removed a whole keyboard shortcut instead of just removing the associated keys. I don't exactly remember which one I removed and I have no idea on how to bring it back.

Any help?

Try putting it back to default settings, it should do the trick...

Single binding to default:

  1. Go to File > Preferences > Keyboard Shortcuts
  2. Look for three vertical dots in the upper right corner
  3. Select "Show User Keybindings"
  4. Right click on key you want to and select "Reset keybinding"

All bindings to default:

  1. Press Ctrl + Shift + P
  2. Type "Open Keyboard Shortcuts (JSON)" and open it
  3. Remove everything from keybindings.json and type empty [ ] into it.
  4. Click save and reopen VSCode

You can locate keybindings.json file in %appdata%\Code\User folder and see what keybinding have been removed. If you delete this file it will reset keybindings to default

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