<<

Search and replace ⇧⌘="">T Reopen closed editor ⌘ Enter Keep mode editor ⌘F ⌃Tab / ⌃⇧Tab Open / Keyboard for macOS ⌥⌘F Replace ⌘K P Copy of active file ⌘G / ⇧⌘G Find next/previous ⌘K Reveal active file in ⌥Enter Select all occurrences of Find match ⌘K O Show active file in new /instance General ⌘ Add selection to next Find match ⌘K ⌘D Move last selection to next Find match ⇧⌘P, F1 Show Command Palette Display ⌘P Quick Open, Go to File… Rich languages editing ⌃⌘F Toggle full screen ⇧⌘N New window/instance ⌥⌘0 Toggle editor layout (horizontal/vertical) ⌘W Close window/instance ⌃Space, ⌘I Trigger suggestion ⌘= / ⇧⌘- in/out ⌘, User Settings ⇧⌘Space Trigger parameter hints ⌘B Toggle visibility ⌘K ⌘S Keyboard Shortcuts ⇧⌥F Format document ⇧⌘E Show Explorer / Toggle focus ⌘K ⌘F Format selection ⇧⌘F Show Search Basic editing F12 Go to Definition ⌃⇧G Show Control ⌥F12 Peek Definition ⇧⌘D Show Debug ⌘X Cut (empty selection) ⌘K F12 Open Definition to the side ⇧⌘X Show Extensions ⌘ Copy line (empty selection) ⌘. Quick Fix ⇧⌘H Replace in ⌥↓ / ⌥↑ Move line down/up ⇧F12 Show References ⇧⌘ Toggle Search details ⇧⌥↓ / ⇧⌥↑ Copy line down/up F2 Rename ⇧⌘U Show Output panel ⇧⌘K Delete line ⌘K ⌘X trailing whitespace ⇧⌘V Open Markdown preview ⌘Enter / ⇧⌘Enter Insert line below/above ⌘K M Change file language ⌘K V Open Markdown preview to the side ⇧⌘\ Jump to matching bracket ⌘K Z Zen Mode (Esc Esc to ) ⌘] / ⌘[ Indent/outdent line Navigation Home / End Go to beginning/end of line Debug ⌘↑ / ⌘↓ Go to beginning/end of file ⌘T Show all Symbols ⌃PgUp / ⌃PgDn Scroll line up/down ⌃G Go to Line... F9 Toggle breakpoint ⌘PgUp /⌘PgDn Scroll up/down ⌘P Go to File... F5 /Continue ⌥⌘[ / ⌥⌘] Fold/unfold region ⇧⌘O Go to Symbol... F11 / ⇧F11 Step into/ out ⌘K ⌘[ / ⌘K ⌘] Fold/unfold all subregions ⇧⌘M Show Problems panel F10 Step over ⌘K ⌘0 / ⌘K ⌘J Fold/unfold all regions F8 / ⇧F8 Go to next/previous error or warning ⇧F5 Stop ⌘K ⌘C Add line comment ⌃⇧Tab Navigate editor group history ⌘K ⌘I Show hover ⌘K ⌘U Remove line comment ⌃- / ⌃⇧- Go back/forward ⌘/ Toggle line comment ⌃⇧M Toggle Tab moves focus Integrated ⇧⌥A Toggle block comment ⌃` ⌥Z Toggle word wrap Editor management Show integrated terminal ⌃⇧` Create new terminal ⌘W Close editor Multi-cursor and selection ⌘C Copy selection ⌘K F Close folder ⌘↑ / ↓ Scroll up/down ⌥ + click Insert cursor ⌘\ Split editor PgUp / PgDn Scroll page up/down st nd rd ⌥⌘↑ Insert cursor above ⌘1 / ⌘2 / ⌘3 Focus into 1 , 2 , 3 editor group ⌘Home / End Scroll to top/bottom ⌥⌘↓ Insert cursor below ⌘K ⌘← / ⌘K ⌘→ Focus into previous/next editor group ⌘U Undo last cursor operation ⌘K ⇧⌘← / ⌘K ⇧⌘→ Move editor left/right ⇧⌥I Insert cursor end of each line selected ⌘K ← / ⌘K → Move active editor group ⌘L Select current line ⇧⌘L Select all occurrences of current selection File management ⌘F2 Select all occurrences of current word ⌘N New File ⌃⇧⌘→ / ← Expand / shrink selection ⌘O Open File... ⇧⌥ + drag mouse Column () selection ⌘S Save ⇧⌥⌘↑ / ↓ Column (box) selection up/down ⇧⌘S Save As... ⇧⌥⌘← / → Column (box) selection left/right ⌥⌘S Save All ⇧⌥⌘PgUp Column (box) selection page up Other operating systems’ keyboard shortcuts and additional ⌘W Close ⇧⌥⌘PgDn Column (box) selection page down unassigned shortcuts available at aka.ms/vscodekeybindings ⌘K ⌘W Close All