Christmas gifts: delivery dates and last-minute ideas.10% off: MODKEY10 Gift guide →

VS Code keyboard shortcuts (Linux)

VS Code PosterGet it on your desk →

The most used VS Code shortcuts on Linux: Command Palette (Ctrl+Shift+P), Quick Open, go to file (Ctrl+P), Save (Ctrl+S), Toggle line comment (Ctrl+/), Add next match to selection (Ctrl+D). This page lists all 49, from the official documentation.

49 VS Code keyboard shortcuts for Linux, grouped into Files & general, Basic editing, Multi-cursor & search, Code & navigation, Panels, terminal & debug. Every key is copied from code.visualstudio.com (retrieved November 19, 2026) and shown on a real keyboard layout.

On Linux, 35 of these 49 shortcuts are the Mac ones with Ctrl in place of ⌘; 14 are different, for example Toggle block comment (Ctrl+Shift+A; Mac: ⌥⇧A), Fold region (Ctrl+Shift+[; Mac: ⌥⌘[), Unfold region (Ctrl+Shift+]; Mac: ⌥⌘]).

VS Code · Desk mat · Paper

VS Code keyboard map

Pick your keyboard and a modifier. Keys with a shortcut light up; point at or tap a key to see everything on it. Try it: hold Ctrl on your keyboard

Modifier
Keyboard
Point at or tap a key.

More shortcuts on this key with other modifiers.

With Ctrl19 keys

All VS Code keyboard shortcuts for Linux

49 shortcuts

Files & general8

CommandShortcut
Command PaletteCtrl+Shift+P
Quick Open, go to fileCtrl+P
User SettingsCtrl+,
New fileCtrl+N
SaveCtrl+S
Close editorCtrl+W
Reopen closed editorCtrl+Shift+T
Split editorCtrl+\

Basic editing11

CommandShortcut
Move line upAlt+↑
Delete lineCtrl+Shift+K
Insert line belowCtrl+Enter
Indent lineCtrl+]
Outdent lineCtrl+[
Toggle line commentCtrl+/
Toggle block commentCtrl+Shift+A
Toggle word wrapAlt+Z
Fold regionCtrl+Shift+[
Unfold regionCtrl+Shift+]
Jump to matching bracketCtrl+Shift+\

Multi-cursor & search10

CommandShortcut
Insert cursor aboveAlt+Shift+↑
Insert cursor belowAlt+Shift+↓
Select current lineCtrl+L
Select all occurrencesCtrl+Shift+L
Add next match to selectionCtrl+D
Expand selectionAlt+Shift+→
FindCtrl+F
ReplaceCtrl+H
Search in filesCtrl+Shift+F
Replace in filesCtrl+Shift+H

Code & navigation11

CommandShortcut
Trigger suggestionCtrl+Space
Format documentCtrl+Shift+I
Go to DefinitionF12
Peek DefinitionCtrl+Shift+F10
Show ReferencesShift+F12
Rename symbolF2
Quick FixCtrl+.
Go to lineCtrl+G
Go to symbolCtrl+Shift+O
Problems panelCtrl+Shift+M
Next error or warningF8

Panels, terminal & debug9

CommandShortcut
Toggle sidebarCtrl+B
ExplorerCtrl+Shift+E
ExtensionsCtrl+Shift+X
Source ControlCtrl+Shift+G
Show integrated terminalCtrl+`
New terminalCtrl+Shift+`
Toggle breakpointF9
Start / continue debuggingF5
Step overF10

Source: Microsoft · code.visualstudio.com · retrieved . Unofficial reference. Not affiliated with Microsoft. How we source shortcuts →

Free printable VS Code cheat sheet

The essential shortcuts on one page (PDF, 24 × 20 cm), for your keyboard and language.

VS Code shortcut questions

What is the shortcut for “Command Palette” in VS Code on Linux?
Press Ctrl+Shift+P. That is the shortcut for “Command Palette” in VS Code on Linux, as given in the official documentation.
What is the shortcut for “Quick Open, go to file” in VS Code on Linux?
Press Ctrl+P. That is the shortcut for “Quick Open, go to file” in VS Code on Linux, as given in the official documentation.
What is the shortcut for “Save” in VS Code on Linux?
Press Ctrl+S. That is the shortcut for “Save” in VS Code on Linux, as given in the official documentation.
Where do these VS Code shortcuts come from?
From Microsoft’s official documentation at code.visualstudio.com, retrieved November 19, 2026. Every key is copied from there, never from other websites.

Learn it, then print it