VSCode Keyboard Shortcuts

Client-Side New

Look up any Visual Studio Code keyboard shortcut with this comprehensive reference. Toggle between Windows/Linux and macOS shortcuts, filter by category (editing, navigation, debugging, terminal, and more), and search by action or key. Over 120 shortcuts covering everything from basic editing to advanced multi-cursor selections and debugging controls.

ActionShortcut
Show Command PaletteCmd+Shift+P
Quick Open FileCmd+P
New WindowCmd+Shift+N
Close WindowCmd+Shift+W
User SettingsCmd+,
Keyboard ShortcutsCmd+K Cmd+S
New FileCmd+N
Save FileCmd+S
Save AsCmd+Shift+S
Save AllCmd+Alt+S
Close EditorCmd+W
Reopen Closed EditorCmd+Shift+T
Cut LineCmd+X
Copy LineCmd+C
Move Line UpAlt+Up
Move Line DownAlt+Down
Copy Line UpShift+Alt+Up
Copy Line DownShift+Alt+Down
Delete LineCmd+Shift+K
Insert Line BelowCmd+Enter
Insert Line AboveCmd+Shift+Enter
Indent LineCmd+]
Outdent LineCmd+[
Toggle Line CommentCmd+/
Toggle Block CommentShift+Alt+A
Toggle Word WrapAlt+Z
Format DocumentShift+Alt+F
Format SelectionCmd+K Cmd+F
UndoCmd+Z
RedoCmd+Shift+Z
Trim Trailing WhitespaceCmd+K Cmd+X
Transform to UppercaseCmd+K Cmd+U
Transform to LowercaseCmd+K Cmd+L
Join LinesCtrl+J
Go to LineCtrl+G
Go to FileCmd+P
Go to SymbolCmd+Shift+O
Go to Symbol in WorkspaceCmd+T
Go to DefinitionF12
Peek DefinitionAlt+F12
Go to ImplementationCmd+F12
Go to ReferencesShift+F12
Go BackCtrl+-
Go ForwardCtrl+Shift+-
Go to Beginning of FileCmd+Up
Go to End of FileCmd+Down
Go to Beginning of LineCmd+Left
Go to End of LineCmd+Right
Scroll Line UpCtrl+Up
Scroll Line DownCtrl+Down
Go to Matching BracketCmd+Shift+\
Fold RegionCmd+Alt+[
Unfold RegionCmd+Alt+]
Fold AllCmd+K Cmd+0
Unfold AllCmd+K Cmd+J
Next EditorCmd+Alt+Right
Previous EditorCmd+Alt+Left
Switch to Editor Group 1Cmd+1
Switch to Editor Group 2Cmd+2
Switch to Editor Group 3Cmd+3
FindCmd+F
ReplaceCmd+Alt+F
Find NextCmd+G
Find PreviousCmd+Shift+G
Toggle Find RegexCmd+Alt+R
Toggle Find Case SensitiveCmd+Alt+C
Toggle Find Whole WordCmd+Alt+W
Search Across FilesCmd+Shift+F
Replace Across FilesCmd+Shift+H
Select All Occurrences of Find MatchAlt+Enter
Insert Cursor AboveCmd+Alt+Up
Insert Cursor BelowCmd+Alt+Down
Insert Cursor at End of Each Line SelectedShift+Alt+I
Select Current LineCmd+L
Select All Occurrences of Current WordCmd+Shift+L
Select Next Occurrence of Current WordCmd+D
Add Cursor with ClickAlt+Click
Undo Last Cursor OperationCmd+U
Column (Box) SelectionShift+Alt+Drag
Expand SelectionCtrl+Shift+Right
Shrink SelectionCtrl+Shift+Left
Select WordCmd+D
Trigger SuggestCtrl+Space
Trigger Parameter HintsCmd+Shift+Space
Quick FixCmd+.
Rename SymbolF2
Show HoverCmd+K Cmd+I
Go to Type DefinitionCmd+F12
Show Problems PanelCmd+Shift+M
Next Error or WarningF8
Previous Error or WarningShift+F8
Organize ImportsShift+Alt+O
Toggle BreakpointF9
Start / Continue DebuggingF5
Stop DebuggingShift+F5
Step OverF10
Step IntoF11
Step OutShift+F11
Restart DebuggingCmd+Shift+F5
Show Debug ConsoleCmd+Shift+Y
Inline BreakpointShift+F9
Toggle TerminalCtrl+`
Create New TerminalCtrl+Shift+`
Copy Selection in TerminalCmd+C
Paste into TerminalCmd+V
Scroll Up in TerminalCmd+Up
Scroll Down in TerminalCmd+Down
Kill TerminalCmd+Backspace
Split TerminalCmd+\
Toggle Full ScreenCtrl+Cmd+F
Toggle Zen ModeCmd+K Z
Zoom InCmd+=
Zoom OutCmd+-
Reset ZoomCmd+Numpad0
Toggle SidebarCmd+B
Show ExplorerCmd+Shift+E
Show SearchCmd+Shift+F
Show Source ControlCtrl+Shift+G
Show DebugCmd+Shift+D
Show ExtensionsCmd+Shift+X
Show Output PanelCmd+Shift+U
Open Markdown PreviewCmd+Shift+V
Split EditorCmd+\
Toggle PanelCmd+J
Toggle MinimapCmd+K Cmd+M
Toggle BreadcrumbsCmd+K Cmd+B
Showing 126 of 126 shortcuts

How to Use

  1. 1

    Select Your OS

    Toggle between Windows/Linux and macOS to see the correct keyboard shortcuts for your platform.

  2. 2

    Filter by Category

    Use category pills to filter shortcuts by function: Editing, Navigation, Debug, Terminal, and more.

  3. 3

    Search Shortcuts

    Search by action name (e.g., "find") or key (e.g., "Ctrl+F") to quickly locate any shortcut.

Examples by Niche

Multi-cursor Editing

Ctrl+D / Cmd+D to select next occurrence, then edit all at once

Quick Navigation

Ctrl+P / Cmd+P to open any file by name, Ctrl+G / Cmd+G to go to line

Terminal Shortcuts

Ctrl+` to toggle terminal, Ctrl+Shift+` to create new terminal

Frequently Asked Questions

What are the most useful VSCode shortcuts?

The most essential shortcuts are Ctrl/Cmd+P (Quick Open file), Ctrl/Cmd+Shift+P (Command Palette), Ctrl/Cmd+D (select next occurrence), Alt+Up/Down (move line), and Ctrl/Cmd+/ (toggle comment). These five shortcuts alone can significantly speed up your workflow.

How do I customize VSCode keyboard shortcuts?

Open the Keyboard Shortcuts editor with Ctrl+K Ctrl+S (or Cmd+K Cmd+S on Mac). You can search for any command and reassign its keybinding. You can also edit keybindings.json directly for advanced customization with when-clause contexts.

Are VSCode shortcuts different on Mac vs Windows?

Yes, Mac uses Cmd instead of Ctrl for most shortcuts, and Option instead of Alt. Some shortcuts also differ completely between platforms. This reference shows the correct shortcut for each platform — use the OS toggle to switch between them.

What are multi-cursor shortcuts in VSCode?

Key multi-cursor shortcuts include Alt+Click to add cursors, Ctrl/Cmd+D to select next occurrence, Ctrl/Cmd+Shift+L to select all occurrences, and Alt+Shift+I to add cursors at end of selected lines. These allow you to edit multiple locations simultaneously.

Related Tools

Related Articles