V

VS Code Keyboard Shortcuts 42 shortcuts · Windows & macOS · Last updated Nov 2026

VS Code was built keyboard-first, and most of its power lives in the command palette and multi-cursor editing. This cheat sheet covers the shortcuts from the official docs that professional developers use every day, with Windows and macOS bindings side by side.

General9

Action Windows macOS
Show Command Palette CtrlShiftP CmdShiftP
Quick Open, go to file CtrlP CmdP
New window / instance CtrlShiftN CmdShiftN
Open settings Ctrl, Cmd,
Open keyboard shortcuts CtrlKthenCtrlS CmdKthenCmdS
Toggle side bar CtrlB CmdB
Show Explorer CtrlShiftE CmdShiftE
Show Source Control CtrlShiftG CtrlShiftG
Show Extensions CtrlShiftX CmdShiftX

Basic Editing10

Action Windows macOS
Cut line (empty selection) CtrlX CmdX
Copy line (empty selection) CtrlC CmdC
Move line up / down AltUporAltDown OptionUporOptionDown
Copy line up / down ShiftAltUporShiftAltDown ShiftOptionUporShiftOptionDown
Delete line CtrlShiftK CmdShiftK
Insert line below / above CtrlEnterorCtrlShiftEnter CmdEnterorCmdShiftEnter
Toggle line comment Ctrl/ Cmd/
Toggle block comment ShiftAltA ShiftOptionA
Indent / outdent line Ctrl]orCtrl[ Cmd]orCmd[
Format document ShiftAltF ShiftOptionF

Multi-cursor & Selection6

Action Windows macOS
Insert cursor above / below CtrlAltUporCtrlAltDown CmdOptionUporCmdOptionDown
Add next occurrence to selection CtrlD CmdD
Select all occurrences of current word CtrlShiftL CmdShiftL
Select current line CtrlL CmdL
Expand / shrink selection ShiftAltRightorShiftAltLeft CtrlShiftCmdRightorCtrlShiftCmdLeft
Column (box) selection ShiftAltDrag ShiftOptionDrag
Action Windows macOS
Go to line CtrlG CtrlG
Go to definition F12 F12
Peek definition AltF12 OptionF12
Go to symbol in editor CtrlShiftO CmdShiftO
Go to symbol in workspace CtrlT CmdT
Show Problems panel CtrlShiftM CmdShiftM
Go to next / previous problem F8orShiftF8 F8orShiftF8

Find & Replace5

Action Windows macOS
Find CtrlF CmdF
Replace CtrlH CmdOptionF
Find in files CtrlShiftF CmdShiftF
Replace in files CtrlShiftH CmdShiftH
Toggle regex in find widget CtrlAltR CmdOptionR

Terminal & Display5

Action Windows macOS
Toggle integrated terminal Ctrl` Cmd`
Create new terminal CtrlShift` CmdShift`
Toggle full screen F11 CtrlCmdF
Toggle word wrap AltZ OptionZ
Zoom in / out Ctrl=orCtrl- Cmd=orCmd-

Related Cheat Sheets

More in popular software · 6 sheets