VSCode Cheatsheet for Mac
Some commonly used keyboard shortcuts for macOS, enhancing your workflow and efficiency! 🚀 Elevate your productivity with these essential shortcuts. ⌨️ Overview General Basic Editing Multi-cursor and Selection Search and Replace Rich Languages Editing Navigation Editor Management File Management Display Debug Integrated Terminal General Shortcut Action ⇧⌘P, F1 Show Command Palette ⌘P Quick Open, Go to File… ⇧⌘N New window/instance ⌘W Close window/instance ⌘, User Settings ⌘K ⌘S Keyboard Shortcuts Basic editing Shortcut Action ⌘X Cut line (empty selection) ⌘C Copy line (empty selection) ⌥↓ / ⌥↑ Move line down/up ⇧⌥↓ / ⇧⌥↑ Copy line down/up ⇧⌘K Delete line ⌘Enter / ⇧⌘Enter Insert line below/above ⇧⌘\ Jump to matching bracket ⌘] / ⌘[ Indent/outdent line Home / End Go to beginning/end of line ⌘↑ / ⌘↓ Go to beginning/end of file ⌃PgUp / ⌃PgDn Scroll line up/down ⌘PgUp /⌘PgDn Scroll page up/down ⌥⌘[ / ⌥⌘] Fold/unfold region ⌘K ⌘[ / ⌘K ⌘] Fold/unfold all subregions ⌘K ⌘0 / ⌘K ⌘J Fold/unfold all regions ⌘K ⌘C Add line comment ⌘K ⌘U Remove line comment ⌘/ Toggle line comment ⇧⌥A Toggle block comment ⌥Z Toggle word wrap Multi-cursor and selection Shortcut Action ⌥ + click Insert cursor ⌥⌘↑ Insert cursor above ⌥⌘↓ Insert cursor below ⌘U Undo last cursor operation ⇧⌥I Insert cursor at end of each line selected ⌘L Select current line ⇧⌘L Select all occurrences of current selection ⌘F2 Select all occurrences of current word ⌃⇧⌘→ / ← Expand / shrink selection ⇧⌥ + drag mouse Column (box) selection ⇧⌥⌘↑ / ↓ Column (box) selection up/down ⇧⌥⌘← / → Column (box) selection left/right ⇧⌥⌘PgUp Column (box) selection page up ⇧⌥⌘PgDn Column (box) selection page down Search and replace Shortcut Action ⌘F Find ⌥⌘F Replace ⌘G / ⇧⌘G Find next/previous ⌥Enter Select all occurrences of Find match ⌘D Add selection to next Find match ⌘K ⌘D Move last selection to next Find match Rich languages editing Shortcut Action ⌃Space, ⌘I Trigger suggestion ⇧⌘Space Trigger parameter hints ⇧⌥F Format document ⌘K ⌘F Format selection F12 Go to Definition ⌥F12 Peek Definition ⌘K F12 Open Definition to the side ⌘....