Keyboard shortcuts

Every built-in shortcut for the workbench, editor, Explorer, terminal and Agent.

Last updated 2 min read
On this page

On a Mac, use Cmd wherever this page says Ctrl, unless noted. Every command and its shortcut is also listed in the command palette (Ctrl+Shift+P or F1).

Why some shortcuts differ from VS Code

Link to “Why some shortcuts differ from VS Code”

Browsers don't let web pages use Ctrl+N, Ctrl+W or Ctrl+T, so Codevre adds alternatives:

ActionShortcutAlternative
New fileCtrl+N (when the browser allows it)Ctrl+Shift+A
Close tabCtrl+W (when the browser allows it)Ctrl+Shift+X

Ctrl+P opens Go to File instead of the browser's print dialog.

ActionShortcut
Command paletteCtrl+Shift+P or F1
Go to fileCtrl+P (also Ctrl+E on Windows/Linux)
Go to lineCtrl+G
Go to symbolCtrl+Shift+O
Open projectCtrl+O
Save to CodevreCtrl+S
Save AsCtrl+Shift+S
SettingsCtrl+,
Toggle sidebarCtrl+B
ExplorerCtrl+Shift+E
SearchCtrl+Shift+F
Source ControlCtrl+Shift+G
TerminalCtrl+\`
New terminalCtrl+Shift+\`
Full screenF11
Word wrapAlt+Z
ActionShortcut
Undo / RedoCtrl+Z / Ctrl+Y (Cmd+Shift+Z on Mac)
Find / ReplaceCtrl+F / Ctrl+H (Cmd+Alt+F on Mac)
Toggle line commentCtrl+/
Toggle block commentShift+Alt+A
Format documentShift+Alt+F
Move line up / downAlt+Up / Alt+Down
Copy line up / downShift+Alt+Up / Shift+Alt+Down
Expand / shrink selectionShift+Alt+Right / Shift+Alt+Left
Add cursor above / belowCtrl+Alt+Up / Ctrl+Alt+Down
Cursors at line endsShift+Alt+I
Add next occurrenceCtrl+D
Select all occurrencesCtrl+Shift+L
ActionShortcut
MoveArrow keys, Page Up/Down, Home, End
Expand / collapseRight / Left
OpenEnter or Space
RenameF2
DeleteDelete
Copy / pasteCtrl+C / Ctrl+V
Copy pathShift+Alt+C
Select allCtrl+A
Extend selectionShift + navigation keys
ActionShortcut
Match caseAlt+C
Whole wordAlt+W
Regular expressionAlt+R
ActionShortcut
Copy selection, or interrupt (SIGINT) if nothing is selectedCtrl+C
Always copyCtrl+Shift+C
PasteCtrl+V
Select allCtrl+Shift+A (Cmd+A on Mac)
ClearCmd+K (Mac)
Previous / next commandCtrl+Up / Ctrl+Down
Scroll a pageShift+Page Up / Shift+Page Down
Open a linkClick, or Ctrl+click for any link
ActionShortcut
SendEnter
New lineShift+Enter
Stop the runEsc
Edit your last messageUp arrow in an empty composer
Switch Chat / AgentLeft / Right on the mode switch
ActionShortcut
CommitCtrl+Enter in the message box
Docs