Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing link to keybindings.json in the Keyboard Shortcuts editor

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?

image of VS Code keyboard shortcuts

Where is keybindings.json located in Windows 10?

VS Code version: 1.29.0-insider (user setup)

like image 763
ivavid Avatar asked Oct 10 '18 12:10

ivavid


People also ask

Where can I find Keybindings in JSON?

You can also open the keybindings.json file from the Command Palette (Ctrl+Shift+P) with the Preferences: Open Keyboard Shortcuts (JSON) command.

How do I add Keybindings to Visual Studio?

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.

How do I find Keybindings?

Press Ctrl + Alt + ? on your keyboard. Keyboard shortcut overview is now open.

How do I set Keybindings?

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.


1 Answers

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.

like image 116
Mihai Chelaru Avatar answered Oct 08 '22 22:10

Mihai Chelaru