VS Code Keyboard Shortcuts — Win / macOS / Linux
A printable reference for the most-used Visual Studio Code keyboard shortcuts, with one-click platform switching between Windows, macOS, and Linux. Every shortcut is grouped by function (General, Editing, Navigation, Debug…) so you can find what you need in seconds.
Visual Studio Code VS Code 1.85+
104 shortcuts
General6
- Show Command PaletteCtrlShiftP
- Quick Open, Go to File…CtrlP
- New window/instanceCtrlShiftN
- Close window/instanceCtrlW
- User SettingsCtrl,
- Keyboard ShortcutsCtrlK CtrlS
Basic editing20
- Cut line (empty selection)CtrlX
- Copy line (empty selection)CtrlC
- Move line down/upAltDown / AltUp
- Copy line down/upShiftAltDown / ShiftAltUp
- Delete lineCtrlShiftK
- Insert line below/aboveCtrlEnter / ShiftCtrlEnter
- Jump to opening/closing bracketCtrlShift\
- Indent/outdent lineCtrl] / Ctrl[
- Go to beginning/end of lineHome / End
- Go to beginning/end of fileCtrlHome / CtrlEnd
- Scroll line up/downAltPgUp / AltPgDn
- Scroll page up/downAltPgUp / AltPgDn
- Fold/unfold regionCtrlK Ctrl[ / CtrlK Ctrl]
- Fold/unfold all subregionsCtrlK Ctrl0 / CtrlK CtrlJ
- Fold/unfold all regionsCtrlK Ctrl0 / CtrlK CtrlJ
- Add line commentCtrlK CtrlC
- Remove line commentCtrlK CtrlU
- Toggle line commentCtrl/
- Toggle block commentShiftAltA
- Toggle word wrapAltZ
Multi-cursor and selection14
- Insert cursorAltclick
- Insert cursor aboveCtrlAltUp
- Insert cursor belowCtrlAltDown
- Undo last cursor operationCtrlU
- Insert cursor at end of each line selectedShiftAltI
- Select current lineCtrlL
- Select all occurrences of current selectionCtrlShiftL
- Select all occurrences of current wordCtrlF2
- Expand / shrink selectionCtrlShiftRight / CtrlShiftLeft
- Column (box) selectionShiftAltdrag mouse
- Column (box) selection up/downCtrlShiftAltUp / CtrlShiftAltDown
- Column (box) selection left/rightCtrlShiftAltLeft / CtrlShiftAltRight
- Column (box) selection page upCtrlShiftAltPgUp
- Column (box) selection page downCtrlShiftAltPgDn
Rich languages editing12
- Trigger suggestionCtrlSpace / CtrlI
- Trigger parameter hintsCtrlShiftSpace
- Format documentShiftAltF
- Format selectionCtrlK CtrlF
- Go to DefinitionF12
- Peek DefinitionAltF12
- Open Definition to the sideCtrlK F12
- Quick FixCtrl.
- Show ReferencesShiftF12
- Rename SymbolF2
- Trim trailing whitespaceCtrlK CtrlX
- Change file languageCtrlK M
Navigation9
- Show all SymbolsCtrlT
- Go to Line…CtrlG
- Go to File…CtrlP
- Go to Symbol…CtrlShiftO
- Show Problems panelCtrlShiftM
- Go to next/previous error or warningF8 / ShiftF8
- Navigate editor group historyCtrlShiftTab
- Go back/forwardAltLeft / AltRight
- Toggle Tab moves focusCtrlM
Editor management7
- Close editorCtrlW
- Close folderCtrlK F
- Split editorCtrl\
- Focus into 1st, 2nd, 3rd editor groupCtrl1 / Ctrl2 / Ctrl3
- Focus into previous/next editor groupCtrlK CtrlLeft / CtrlK CtrlRight
- Move editor left/rightCtrlK ShiftLeft / CtrlK ShiftRight
- Move active editor groupCtrlK Left / CtrlK Right
File management9
- New FileCtrlN
- Open File…CtrlO
- SaveCtrlS
- Save As…CtrlShiftS
- Save AllCtrlK CtrlS
- CloseCtrlW
- Close AllCtrlK CtrlW
- Reveal active file in FinderCtrlK R
- Show active file in new window/instanceCtrlK O
Display15
- Toggle full screenF11
- Toggle editor layout (horizontal/vertical)ShiftAlt0
- Zoom in/outCtrl= / Ctrl-
- Toggle Sidebar visibilityCtrlB
- Show Explorer / Toggle focusCtrlShiftE
- Show SearchCtrlShiftF
- Show Source ControlCtrlShiftG
- Show DebugCtrlShiftD
- Show ExtensionsCtrlShiftX
- Replace in filesCtrlShiftH
- Toggle Search detailsCtrlShiftJ
- Show Output panelCtrlShiftU
- Open Markdown previewCtrlShiftV
- Open Markdown preview to the sideCtrlK V
- Zen Mode (Esc Esc to exit)CtrlK Z
Debug6
- Toggle breakpointF9
- Start/ContinueF5
- Step into/outF11 / ShiftF11
- Step overF10
- StopShiftF5
- Show hoverCtrlK CtrlI
Integrated terminal6
- Show integrated terminalCtrl`
- Create new terminalCtrlShift`
- Copy selectionCtrlC
- Scroll up/downCtrlUp / CtrlDown
- Scroll page up/downPgUp / PgDn
- Scroll to top/bottomCtrlHome / CtrlEnd
About VS Code Shortcuts
Visual Studio Code (VS Code) is a free, cross-platform source-code editor developed by Microsoft. It runs on Windows, macOS, and Linux and is the most popular editor in the 2024 Stack Overflow Developer Survey with a 75.9% share — used daily by full-stack, frontend, and DevOps engineers worldwide. VS Code exposes nearly every action through a keyboard shortcut, and the same logical action often maps to three different keys depending on your platform: ⌘ on macOS, Ctrl on Windows/Linux, ⌥ on macOS, Alt on Windows/Linux. This reference card covers the most-used 130+ shortcuts across 9 functional groups (General, Basic editing, Multi-cursor, Rich languages editing, Navigation, Editor management, File management, Display, Debug, Integrated terminal). All entries are transcribed from the official VS Code documentation at code.visualstudio.com/docs/getstarted/keybindings, against VS Code 1.85 and later. How to use - Pick your platform (Win / macOS / Linux) at the top — the rest of the page updates instantly. Default is auto-detected from your browser's User-Agent, with your choice persisted in localStorage so refreshes keep it. - Type any word in the search box (e.g. "breakpoint", "save", "Cmd") to filter rows. Search matches feature names, the optional tag field, and the key combination text in any platform. - Click the "Copy" button on any row to copy the current platform's key string to your clipboard — paste it into a cheat sheet, a doc, or a chat message. - Press Ctrl/Cmd+P or click "Export PDF" to save as PDF; sidebar/header/footer/search are hidden so the printable layout is the shortcuts grid only. Tips - Most multi-key combos (like ⌘K ⌘S) are entered as a **sequence**: press the first combo, release, then press the second. They're not simultaneous. - "Quick Fix" (⌘.) and "Go to Definition" (F12) are the two most useful shortcuts for any code editor — learn these first. - Customize any keybinding via File → Preferences → Keyboard Shortcuts (⌘K ⌘S / Ctrl+K Ctrl+S).
Disclaimer
This shortcut reference website is a third-party unofficial tool. It has no affiliation, investment, authorization, or official partnership with the trademark holders of any software products mentioned on these pages.
All shortcut information is sourced from publicly available online materials and verified through local software testing, and is provided for learning and reference purposes only. We do not guarantee absolute accuracy, completeness, or real-time compatibility with every version of the software. Shortcut behavior may differ across software versions and operating systems — please refer to the official documentation of each software as the source of truth.
All product names, trademarks, and logos appearing on these pages are the property of their respective copyright holders / trademark owners. They are used here for descriptive purposes only, to identify the corresponding software, and do not imply any endorsement or license from the trademark holder.
If a copyright holder or trademark owner believes that any content on this site infringes their rights, please send an email to [email protected]. Upon receiving valid proof of rights, we will modify or remove the relevant content within a reasonable period.
This website assumes no legal liability for any direct or indirect losses arising from the use of information presented on these pages.
Version 1.0.0