'Why vscode shortcuts don't work properly?

I've recently updated my VSCode and most of its shortcuts don't work anymore. I tried to reinstall my VSCode but it didn't work. I've checked if it's affected by any other system shortcuts but I wasn't lucky enough and none of them worked for me. Some shortcuts like: ctrl + d, ctrl + shift + k, etc.



Solution 1:[1]

I found a solution for this problem.

  1. go to : File>Preferences>Keyboard Shortcut

enter image description here

  1. Then from upright of the page select the icon that says open keyboard shortcuts. Like below

enter image description here

  1. In the keybindings.json tab you may see something like this:

enter image description here

Replace everything with the settings from the following links:

if you are using windows copy settings from this link: windows.keybindings.json

for mac: macos.keybindings.json

for linux: linux.keybindings.json

and if you want to see all available options see this link: vs-code-default-keybindings

  1. after saving the file, your vscode shortcuts will work properly again.

Solution 2:[2]

There could be many reasons. First check that if there is any other application overrides the shortcuts or not.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 S.B