Visual Studio Code shortcuts 2020 complete list for Windows and Mac + PDF

Visual Studio Code shortcuts 2020 complete list for Windows and Mac + PDF

As a developer, you want to work as fast and efficiently as possible. One way to reach that goal is to memorize the shortcuts of all the necessary actions you take inside your go-to software. Since you have come this far then you might have already realized that there are a lot of shortcuts available. To make it simpler for you, we collected all the shortcuts available and placed them inside this blog. 

If you want to have all the Visual Studio Code shortcuts on your computer without going through our website, then you can download the PDF formats for Windows and Mac here.

With our WorkSmarter solution, you can have all the essential shortcuts for Visual Studio Code in the palm of your hand. On our website you can purchase a Visual Studio Code shortcut mousepad that is both efficient and practical.

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