How to Change Visual Studio Code's Keyboard Shortcuts
Changing the keyboard shortcuts in Visual Studio Code is quick and easy:
- Open Visual Studio Code
- Press
Ctrl + Shift + P
- Type
key
- Select `Preferences: Open Keyboard Shortcuts (JSON)
- 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