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.

Related Shortcut Pages

Jupyter Notebook PyCharm Xcode Neovim / Vim WebStorm JetBrains Rider

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 + ]IndentIndent selected lines.
Ctrl + [OutdentOutdent 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.

Browse shortcuts for 269 platforms

Explore All
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

🤖 Ask AI about VS Code shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok