Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I restore a removed keyboard shortcut in VS Code?

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. How can I bring it back?

like image 824
DerThronprinz Avatar asked Sep 05 '25 03:09

DerThronprinz


2 Answers

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

like image 45
Michal Avatar answered Sep 07 '25 23:09

Michal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!