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.

VS

Visual Studio Code VS Code 1.85+

104 shortcuts

General6

  • Show Command Palette
    CtrlShiftP
  • Quick Open, Go to File…
    CtrlP
  • New window/instance
    CtrlShiftN
  • Close window/instance
    CtrlW
  • User Settings
    Ctrl,
  • Keyboard Shortcuts
    CtrlK CtrlS

Basic editing20

  • Cut line (empty selection)
    CtrlX
  • Copy line (empty selection)
    CtrlC
  • Move line down/up
    AltDown / AltUp
  • Copy line down/up
    ShiftAltDown / ShiftAltUp
  • Delete line
    CtrlShiftK
  • Insert line below/above
    CtrlEnter / ShiftCtrlEnter
  • Jump to opening/closing bracket
    CtrlShift\
  • Indent/outdent line
    Ctrl] / Ctrl[
  • Go to beginning/end of line
    Home / End
  • Go to beginning/end of file
    CtrlHome / CtrlEnd
  • Scroll line up/down
    AltPgUp / AltPgDn
  • Scroll page up/down
    AltPgUp / AltPgDn
  • Fold/unfold region
    CtrlK Ctrl[ / CtrlK Ctrl]
  • Fold/unfold all subregions
    CtrlK Ctrl0 / CtrlK CtrlJ
  • Fold/unfold all regions
    CtrlK Ctrl0 / CtrlK CtrlJ
  • Add line comment
    CtrlK CtrlC
  • Remove line comment
    CtrlK CtrlU
  • Toggle line comment
    Ctrl/
  • Toggle block comment
    ShiftAltA
  • Toggle word wrap
    AltZ

Multi-cursor and selection14

  • Insert cursor
    Altclick
  • Insert cursor above
    CtrlAltUp
  • Insert cursor below
    CtrlAltDown
  • Undo last cursor operation
    CtrlU
  • Insert cursor at end of each line selected
    ShiftAltI
  • Select current line
    CtrlL
  • Select all occurrences of current selection
    CtrlShiftL
  • Select all occurrences of current word
    CtrlF2
  • Expand / shrink selection
    CtrlShiftRight / CtrlShiftLeft
  • Column (box) selection
    ShiftAltdrag mouse
  • Column (box) selection up/down
    CtrlShiftAltUp / CtrlShiftAltDown
  • Column (box) selection left/right
    CtrlShiftAltLeft / CtrlShiftAltRight
  • Column (box) selection page up
    CtrlShiftAltPgUp
  • Column (box) selection page down
    CtrlShiftAltPgDn

Rich languages editing12

  • Trigger suggestion
    CtrlSpace / CtrlI
  • Trigger parameter hints
    CtrlShiftSpace
  • Format document
    ShiftAltF
  • Format selection
    CtrlK CtrlF
  • Go to Definition
    F12
  • Peek Definition
    AltF12
  • Open Definition to the side
    CtrlK F12
  • Quick Fix
    Ctrl.
  • Show References
    ShiftF12
  • Rename Symbol
    F2
  • Trim trailing whitespace
    CtrlK CtrlX
  • Change file language
    CtrlK M

Navigation9

  • Show all Symbols
    CtrlT
  • Go to Line…
    CtrlG
  • Go to File…
    CtrlP
  • Go to Symbol…
    CtrlShiftO
  • Show Problems panel
    CtrlShiftM
  • Go to next/previous error or warning
    F8 / ShiftF8
  • Navigate editor group history
    CtrlShiftTab
  • Go back/forward
    AltLeft / AltRight
  • Toggle Tab moves focus
    CtrlM

Editor management7

  • Close editor
    CtrlW
  • Close folder
    CtrlK F
  • Split editor
    Ctrl\
  • Focus into 1st, 2nd, 3rd editor group
    Ctrl1 / Ctrl2 / Ctrl3
  • Focus into previous/next editor group
    CtrlK CtrlLeft / CtrlK CtrlRight
  • Move editor left/right
    CtrlK ShiftLeft / CtrlK ShiftRight
  • Move active editor group
    CtrlK Left / CtrlK Right

File management9

  • New File
    CtrlN
  • Open File…
    CtrlO
  • Save
    CtrlS
  • Save As…
    CtrlShiftS
  • Save All
    CtrlK CtrlS
  • Close
    CtrlW
  • Close All
    CtrlK CtrlW
  • Reveal active file in Finder
    CtrlK R
  • Show active file in new window/instance
    CtrlK O

Display15

  • Toggle full screen
    F11
  • Toggle editor layout (horizontal/vertical)
    ShiftAlt0
  • Zoom in/out
    Ctrl= / Ctrl-
  • Toggle Sidebar visibility
    CtrlB
  • Show Explorer / Toggle focus
    CtrlShiftE
  • Show Search
    CtrlShiftF
  • Show Source Control
    CtrlShiftG
  • Show Debug
    CtrlShiftD
  • Show Extensions
    CtrlShiftX
  • Replace in files
    CtrlShiftH
  • Toggle Search details
    CtrlShiftJ
  • Show Output panel
    CtrlShiftU
  • Open Markdown preview
    CtrlShiftV
  • Open Markdown preview to the side
    CtrlK V
  • Zen Mode (Esc Esc to exit)
    CtrlK Z

Debug6

  • Toggle breakpoint
    F9
  • Start/Continue
    F5
  • Step into/out
    F11 / ShiftF11
  • Step over
    F10
  • Stop
    ShiftF5
  • Show hover
    CtrlK CtrlI

Integrated terminal6

  • Show integrated terminal
    Ctrl`
  • Create new terminal
    CtrlShift`
  • Copy selection
    CtrlC
  • Scroll up/down
    CtrlUp / CtrlDown
  • Scroll page up/down
    PgUp / PgDn
  • Scroll to top/bottom
    CtrlHome / 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).

Version 1.0.0