Search code examples
visual-studio-codekeyboard-shortcuts

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

  • 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.