Visual Studio Code Keyboard Shortcuts For Mac
Please watch this video to support our content network 🙂
When I was still learning Visual Studio Code on my MacBook Air I remapped the official vs code PDF shortcut PDF into this HTML table. So here's a simple list of all VS Code key bindings for Mac OSX.
General | |
F1 Show Command Palette | ⇧⌘P, |
Quick Open, Go to File… | ⌘P |
New window/instance | ⇧⌘N |
Close window/instance | ⌘W |
User Settings | ⌘, |
Keyboard Shortcuts | ⌘K ⌘S |
Basic editing | |
Cut line (empty selection) | ⌘X |
Copy line (empty selection) | ⌘C |
Move line down/up | ⌥↓ / ⌥↑ |
Copy line down/up | ⇧⌥↓ / ⇧⌥↑ |
Delete line | ⇧⌘K |
Insert line below/above | ⌘Enter / ⇧⌘Enter |
Jump to matching bracket | ⇧⌘ |
Indent/outdent line | ⌘] / ⌘[ |
Go to beginning/end of file | ⌘↑ / ⌘↓ |
Scroll line up/down | ⌃PgUp / ⌃PgDn |
Scroll page up/down | ⌘PgUp /⌘PgDn |
Fold/unfold region | ⌥⌘[ / ⌥⌘] |
Fold/unfold all subregions | ⌘K ⌘[ / ⌘K ⌘] |
Fold/unfold all regions | ⌘K ⌘0 / ⌘K ⌘J |
Add line comment | ⌘K ⌘C |
Remove line comment | ⌘K ⌘U |
Toggle line comment | ⌘/ |
Toggle block comment | ⇧⌥A |
Toggle word wrap | ⌥Z |
Multi-cursor and selection | |
Insert cursor | ⌥ + click |
Insert cursor above | ⌥⌘↑ |
Insert cursor below | ⌥⌘↓ |
Undo last cursor operation | ⌘U |
Insert cursor at end of each line selected | ⇧⌥I |
Select current line | ⌘L |
Select all occurrences of current selection | ⇧⌘L |
Select all occurrences of current word | ⌘F2 |
Expand / shrink selection | ⌃⇧⌘→ / ← |
Column (box) selection | ⇧⌥ + drag mouse |
Column (box) selection up/down | ⇧⌥⌘↑ / ↓ |
Column (box) selection left/right | ⇧⌥⌘← / → |
Column (box) selection page up | ⇧⌥⌘PgUp |
Column (box) selection page down | ⇧⌥⌘PgDn |
Search and replace | |
Find | ⌘F |
Replace | ⌥⌘F |
Find next/previous | ⌘G / ⇧⌘G |
Select all occurrences of Find match | ⌥Enter |
Add selection to next Find match | ⌘D |
Move last selection to next Find match | ⌘K ⌘D |
Rich languages editing | |
Trigger suggestion | ⌃Space |
Trigger parameter hints | ⇧⌘Space |
Format document | ⇧⌥F |
Format selection | ⌘K ⌘F |
Go to Definition | F12 |
Peek Definition | ⌥F12 |
Definition to the side | ⌘K F12 |
Quick Fix | ⌘. |
Show References | ⇧F12 |
Rename Symbol | F2 |
Trim trailing whitespace | ⌘K ⌘X |
Change file language | ⌘K M |
Navigation | |
Show all Symbols | ⌘T |
Go to Line... | ⌃G |
Go to File... | ⌘P |
Go to Symbol... | ⇧⌘O |
Show Problems panel | ⇧⌘M |
Go to next/previous error or warning | F8 / ⇧F8 |
Navigate editor group history | ⌃⇧Tab |
Go back/forward | ⌃- / ⌃⇧- |
Toggle Tab moves focus | ⌃⇧M |
Editor management | |
Close editor | ⌘W |
F Close folder | ⌘K |
Split editor | ⌘ |
Focus into 1st, 2nd, 3rd editor group | ⌘1 / ⌘2 / ⌘3 |
Focus into previous/next editor group | ⌘K ⌘← / ⌘K ⌘→ |
Move editor left/right | ⌘K ⇧⌘← / ⌘K ⇧⌘→ |
Move active editor group | ⌘K ← / ⌘K → |
File management | |
New File | ⌘N |
Open File... | ⌘O |
Save | ⌘S |
Save As... | ⇧⌘S |
Save All | ⌥⌘S |
Close | ⌘W |
Close All | ⌘K ⌘W |
Reopen closed editor | ⇧⌘T |
Enter Keep preview mode editor open | ⌘K |
Open next / previous | ⌃Tab / ⌃⇧Tab |
Copy path of active file | ⌘K P |
Reveal active file in Finder | ⌘K R |
Show active file in new window/instance | ⌘K O |
Display | |
Toggle full screen | ⌃⌘F |
Toggle editor layout (horizontal/vertical) | ⌥⌘0 |
Zoom in/out | ⌘= / ⇧⌘- |
Toggle Sidebar visibility | ⌘B |
Show Explorer / Toggle focus | ⇧⌘E |
Show Search | ⇧⌘F |
Show Source Control | ⌃⇧G |
Show Debug | ⇧⌘D |
Show Extensions | ⇧⌘X |
Replace in files | ⇧⌘H |
Toggle Search details | ⇧⌘J |
Show Output panel | ⇧⌘U |
Open Markdown preview | ⇧⌘V |
Open Markdown preview to the side | ⌘K V |
Zen Mode (Esc Esc to exit) | ⌘K Z |
Debug | |
Toggle breakpoint | F9 |
Start/Continue | F5 |
Step into/ out | F11 / ⇧F11 |
Step over | F10 |
Stop | ⇧F5 |
Show hover | ⌘K ⌘I |
Integrated terminal | |
Show integrated terminal | ⌃` |
Create new terminal | ⌃⇧` |
Copy selection | ⌘C |
Scroll up/down | ⌘↑ / ↓ |
Scroll page up/down | PgUp / PgDn |
Scroll to top/bottom | ⌘Home / End |
This is the equivalent of original Microsoft VSCode PDF file.
Please watch this video to support our content network 🙂
Articles Related To Undefined Community
- DaVinci Resolve 18: How To Brighten Video Clip on 23 Dec 2022 by Ghost Together
- How To Fade Out In DaVinci Resolve (Fade In To and From Black) on 20 Dec 2022 by Ghost Together
- How To Animate Zoom Effect In DaVinci Resolve 18 on 20 Dec 2022 by Ghost Together
- Zoom In On Video Clip In Davinci Resolve 18 on 18 Dec 2022 by Ghost Together
- asdasdasdasdasd on 10 Dec 2022 by Ghost Together
- How to Install MinGW w64 64-bit on Windows (C/C++ Compiler) on 3 Nov 2022 by Ghost Together
- How To Crop Video In Premiere Pro on 20 Sep 2022 by Ghost Together
- How To Change Font Size In VSCode (Visual Studio Code) on 29 Jul 2022 by Ghost Together
- How To Fix MinGW File Downloaded Incorrectly on 30 Jul 2022 by Ghost Together
- Shrink or Expand Text Selection (VS Code Keyboard Shortcut) on 27 Mar 2022 by Ghost Together
Last 10 Articles Written On Ghost Together
- xv on 24 Jun 2024 by AndrewOcean
- How to get started on 17 Dec 2023 by Kenya
- How To Make Characters In Midjourney on 14 Dec 2023 by Ghost Together
- How to make money online on 12 Dec 2023 by DRSMS313
- How To Make Consistent Characters In Midjourney on 12 Dec 2023 by Ghost Together
- Wildfires and Wastelands on 10 Dec 2023 by A. Stranger
- How To Download, Install And Activate Davinci Resolve Studio 18 on 10 Dec 2023 by Ghost Together
- How to use LUTs in Davinci Resolve 18 on 10 Dec 2023 by Ghost Together
- Write about Association between surface of the polyp with histomorphology Polypoi... on 10 Dec 2023 by msjrez
- How To Zoom On Video In Davinci Resolve on 10 Dec 2023 by Ghost Together
Last 10 Undefined Questions Asked On Ghost Overflow
- Ask your first Undefined question! (Help us build the largest database of questions on any subject)