How to Change Visual Studio Code's Keyboard Shortcuts

Changing the keyboard shortcuts in Visual Studio Code is quick and easy:

  1. Open Visual Studio Code
  2. Press Ctrl + Shift + P
  3. Type key
  4. Select `Preferences: Open Keyboard Shortcuts (JSON)
  5. Edit the file

Example:

[
    {
        "key": "ctrl+i",
        "command": "cursorUp",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+k",
        "command": "cursorDown",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+j",
        "command": "cursorLeft",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+l",
        "command": "cursorRight",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+shift+i",
        "command": "cursorPageUp",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+shift+k",
        "command": "cursorPageDown",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+shift+j",
        "command": "cursorHome",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+shift+l",
        "command": "cursorEnd",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+tab",
        "command": "workbench.action.nextEditor"
    },
    {
        "key": "ctrl+shift+tab",
        "command": "workbench.action.previousEditor"
    },
    {
        "key": "ctrl+shift+alt+x",
        "command": "workbench.action.toggleActivityBarVisibility"
    }
]

Note: Modifying the keyboard shortcuts will overwrite the default settings.

Visual Studio Code 1.81.1