All Shortcuts

VS Code Shortcuts & Commands — Complete Cheat Sheet (49)

Complete Visual Studio Code keyboard shortcuts for editing, navigation, debugging, and terminal operations. The most comprehensive VS Code shortcut reference for developers.

Search all VS Code shortcuts interactively

Interactive Shortcut Finder

All VS Code Shortcuts

Essential Editing

ShortcutActionDescription
Ctrl + XCut LineCut entire line if no selection.
Ctrl + CCopy LineCopy entire line if no selection.
Ctrl + /Toggle CommentComment or uncomment selected lines.
Ctrl + DSelect Next MatchSelect next occurrence of current word.
Ctrl + Shift + LSelect All MatchesSelect all occurrences at once.
Ctrl + Shift + KDelete LineDelete current line without selection.
Ctrl + EnterInsert Line BelowInsert new line below current line.
Alt + Up/DownMove LineMove current line or selection up/down.
Shift + Alt + Up/DownCopy LineDuplicate line or selection up/down.

Multi-cursor

ShortcutActionDescription
Alt + ClickAdd CursorAdd cursor at clicked position.
Ctrl + Alt + Up/DownAdd Cursor Above/BelowAdd cursor above or below current line.
Shift + Alt + ICursors at Line EndsAdd cursors at end of each selected line.
Ctrl + LSelect LineSelect entire current line.

Search & Replace

ShortcutActionDescription
Ctrl + FFindSearch in current file.
Ctrl + HReplaceFind and replace in current file.
Ctrl + Shift + FFind in FilesSearch across all files.
Ctrl + Shift + HReplace in FilesReplace across all files.
F3Find NextGo to next search result.
Shift + F3Find PreviousGo to previous search result.

Navigation & Files

ShortcutActionDescription
Ctrl + PQuick OpenQuickly open file by name.
Ctrl + Shift + PCommand PaletteAccess all commands.
Ctrl + TabNext FileSwitch between open files.
Ctrl + WClose EditorClose current editor tab.
Ctrl + \\Split EditorSplit editor horizontally.
Ctrl + 1/2/3Focus Editor GroupFocus on editor group 1, 2, or 3.

Code Navigation

ShortcutActionDescription
F12Go to DefinitionJump to symbol definition.
Alt + F12Peek DefinitionView definition in popup.
Shift + F12Show ReferencesDisplay all references to symbol.
Ctrl + Shift + OGo to SymbolNavigate to symbol in current file.
Ctrl + GGo to LineJump to specific line number.
F8Next ErrorGo to next error or warning.

Views & Panels

ShortcutActionDescription
Ctrl + BToggle SidebarShow or hide sidebar.
Ctrl + Shift + EExplorerOpen file explorer.
Ctrl + Shift + FSearchOpen search panel.
Ctrl + Shift + GGitOpen Git source control.
Ctrl + Shift + DDebugOpen debug panel.
Ctrl + Shift + XExtensionsOpen extensions panel.
Ctrl + `Toggle TerminalOpen or close integrated terminal.
Ctrl + JToggle PanelShow or hide bottom panel.

Debugging

ShortcutActionDescription
F5Start/ContinueStart debugging or continue execution.
Shift + F5StopStop debugging session.
F9Toggle BreakpointAdd or remove breakpoint on current line.
F10Step OverStep over to next line.
F11Step IntoStep into function.

Basic Operations

ShortcutActionDescription
Ctrl + NNew FileCreate new file.
Ctrl + OOpen FileShow file open dialog.
Ctrl + SSaveSave current file.
Ctrl + Shift + SSave AsSave current file with new name.
Ctrl + ,SettingsOpen user settings.

Pro Tips

Frequently Asked Questions

What is the shortcut to open command palette in VS Code?

Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the command palette.

How do I quickly open a file in VS Code?

Press Ctrl+P (Windows/Linux) or Cmd+P (Mac) to search and open files by name.

How do I select multiple cursors in VS Code?

Press Ctrl+D to select the next occurrence of the current word, or Alt+Click to place cursors at multiple positions.

How do I toggle the terminal in VS Code?

Press Ctrl+` (backtick) to toggle the integrated terminal panel.

How do I move a line up or down in VS Code?

Press Alt+Up/Down arrow to move the current line up or down.

Browse shortcuts for 230 platforms

Explore All