VCode home

Change keyboard shortcuts

Agents: claude, codex, opencode, cursor · On: desktop

Give any of VCode's keyboard shortcuts a key of your own, or take its key away. Your keys follow your account to every workstation.

Why you would use it

A shortcut clashes with one your browser, your desktop or your hands already use, or you want a key for something you do often, such as dictating. Change it once in settings and every computer you use VCode on has it.

How to use it

  1. Open settings with the cog (#settings-open). Under Keyboard shortcuts (#settings-keys), press Edit shortcuts (#keys-open).

    The Keyboard shortcuts group in settings, with its Edit shortcuts button.

  2. The Keyboard shortcuts screen (#keys-screen) opens over settings, a row per command. Click the key shown on a row. It reads Press keys….

  3. Press the new keys, such as Alt+M. The row saves at once and shows the new key.

  4. To give the command no key, press Backspace instead. To leave it as it was, press Escape or click somewhere else.

  5. A row you changed has a Reset button. It puts back the keys the command had by default.

  6. The back arrow (#keys-screen-back) or Escape goes back to settings.

The Keyboard shortcuts screen, a row per command with its key on a button.

What you see

Options and settings

These are the commands and their default keys. Mod is ⌘ on a Mac and Ctrl everywhere else.

Command Default
New thread Mod+T, Mod+N
Files Mod+P
Resume Mod+O
Close tab Mod+W
Reopen closed tab Mod+Shift+T
Rename tab Mod+Shift+R; Mod+R in the desktop app
Next tab / Previous tab Ctrl+PageDown / Ctrl+PageUp. A Mac also has ⌥⌘→ / ⌥⌘← and ⇧⌘] / ⇧⌘[
Next project / Previous project Ctrl+Shift+PageDown / Ctrl+Shift+PageUp, on a Mac too
Last tab Ctrl+Tab, on a Mac too
Dictate Mod+Shift+M
Save file Mod+S
Split right / Split down Mod+D / Mod+Shift+D
Pane to the left, right, above, below Alt+Shift+arrow; ⌃⌘+arrow on a Mac, where ⌥⌘↑ and ⌥⌘↓ work too
Maximise pane Alt+Enter, on a Mac too
Terminal Ctrl+`, on a Mac too
Pane keys Ctrl+B, on a Mac too, then %, ", an arrow, o, z or x
Zoom in / Zoom out / Zoom to 100% Mod+= or Mod++ / Mod+- or Mod+_ / Mod+0

A key needs Ctrl, Cmd, Alt or Mod, unless it is an F key (F1 to F12). Each command takes up to four keys.

You can also set a key from a thread: v-code settings set keys.mic Alt+M, or a list such as v-code settings set keys.new-tab '["Mod+T","Mod+N"]'. null puts back the default and [] removes every key. Spell the keys as in the table: modifiers and then the key, joined by +.

Limits and known gaps