The VS Code documentation refers to a link to keybindings.json
. This link is not present in my editor (see image). How can it be restored?
Where is keybindings.json
located in Windows 10?
VS Code version: 1.29.0-insider (user setup)
You can also open the keybindings.json file from the Command Palette (Ctrl+Shift+P) with the Preferences: Open Keyboard Shortcuts (JSON) command.
On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard. Optional: Filter the list of commands by entering all or part of the name of the command, without spaces, in the Show commands containing box. In the list, choose the command to which you want to assign a keyboard shortcut.
Press Ctrl + Alt + ? on your keyboard. Keyboard shortcut overview is now open.
To reassign a keyConnect the keyboard that you want to configure. Select the Start button, and then select Microsoft Mouse and Keyboard Center. From the displayed list of key names, select the key that you want to reassign. In the command list of the key that you want to reassign, select a command.
I've tested this both on 1.28.0 and 1.29.0-insider. It seems that the link in question doesn't exist on the insider version. On my 1.28.0 installation, I can click the link and it will go to keybindings.json, which is found in C:\Users\<username>\AppData\Roaming\Code\User\keybindings.json
. This link exists even if the file itself is deleted, and will create a new file at that location if you click it.
In the insider's version however, the link is gone, and the insider keybindings.json is installed for me by default in C:\Users\<username>\AppData\Roaming\Code - Insiders\User\keybindings.json
.
If you want to open it up, you can open up the control palette with CTRL +SHIFT + P and select Preferences: Open Keyboard Shortcuts File
. This does the same thing as clicking on that link in the non-insiders version, including creating the file if it doesn't exist.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With