Linux is an open-source operating system. Many developers use Linux because you can gain full access to your machine if you use it. If you are a programmer and using VS Code on your Linux machine then these shortcuts are going to save your time.
General
Work | Keyboard Shortcut |
Show Command Palette | Ctrl+Shift+P, F1 |
Quick Open, Go to File | Ctrl+P |
New window/instance | Ctrl+Shift+N |
Close window/instance | Ctrl+W |
User Settings | Ctrl+, |
Keyboard Shortcuts | Ctrl+K Ctrl+S |
Basic editing
Work | Keyboard Shortcut |
Cut line(empty selection) | Ctrl+X |
Copy line(empty selection) | Ctrl+C |
Move line down/up | Alt+↓/↑ |
Delete line | Ctrl+Shift+K |
Insert line below/above | Ctrl+Enter/ Ctrl+Shift+Enter |
Jump to matching bracket | Ctrl+Shift+ |
Indent/Outdent line | Ctrl+]/Ctrl+[ |
Go to beginning/end of line | Home/End |
Go to beginning/end of file | Ctrl+Home/End |
Scroll line up/down | Ctrl+↑/↓ |
Scroll page up/down | Alt+PgUp/PgDn |
Fold/unfold region | Ctrl+Shift+[ / ] |
Fold/unfold all subregions | Ctrl+K Ctrl+[ / ] |
Fold/Unfold all regions | Ctrl+K Ctrl+0/Ctrl+K Ctrl+J |
Add line comment | Ctrl+K Ctrl+C |
Remove line comment | Ctrl+K Ctrl+U |
Toggle line comment | Ctrl+/ |
Toggle block comment | Ctrl+Shift+A |
Toggle word wrap | Alt+Z |
Rich languages editing
Work | Keyboard Shortcut |
Trigger suggestion | Ctrl+Space |
Trigger parameter hints | Ctrl+Shift+Space |
Format document | Ctrl+Shift+I |
Format selection | Ctrl+K Ctrl+F |
Go to Definition | F12 |
Peek Definition | Ctrl+Shift+F10 |
Open Definition to the side | Ctrl+K F12 |
Quick Fix | Ctrl+. |
Show References | Shift+F12 |
Rename Symbol | F2 |
Trim trailing whitespace | Ctrl+K Ctrl+X |
Multi-cursor and selection
Work | Keyboard Shortcut |
Insert cursor* | Alt+Click |
Insert cursor above/below | Shift+Alt+↑/↓ |
Undo last cursor operation | Ctrl+U |
Insert cursor at end of each line selected | Shift+Alt+I |
Select current line | Ctrl+L |
Select all occurrences of the current selection | Ctrl+Shift+L |
Select all occurrences of the current word | Ctrl+F2 |
Expand selection | Shift+Alt+→ |
Shrink selection | Shift+Alt+← |
Column(box)selection | Shift+Alt+drag mouse |
Display
Work | Keyboard Shortcut |
Toggle fullscreen | F11 |
Toggle editor layout(horizontal/vertical) | Shift+Alt+0 |
Zoom in/out | Ctrl+=/ - |
Toggle Sidebar visibility | Ctrl+B |
Show Explorer/Toggle focus | Ctrl+Shift+E |
Show Search | Ctrl+Shift+F |
Show Source Control | Ctrl+Shift+G |
Show Debug | Ctrl+Shift+D |
Show Extensions | Ctrl+Shift+X |
Replace in files | Ctrl+Shift+H |
Toggle Search details | Ctrl+Shift+J |
Open new command prompt/terminal | Ctrl+Shift+C |
Show Output panel | Ctrl+K Ctrl+H |
Open Markdown preview | Ctrl+Shift+V |
Open Markdown preview to the side | Ctrl+K V |
Search and replace
Work | Keyboard Shortcut |
Find | Ctrl+F |
Replace | Ctrl+H |
Find next/previous | F3/Shift+F3 |
Select all occurrences of Find match | Alt+Enter |
Add selection to next Find match | Ctrl+D |
Navigation
Work | Keyboard Shortcut |
Show all Symbols | Ctrl+T |
Go to Line... | Ctrl+G |
Go to File... | Ctrl+P |
Go to Symbol... | Ctrl+Shift+O |
Show Problems panel | Ctrl+Shift+M |
Go to next error or warning | F8 |
Go to previous error or warning | Shift+F8 |
Navigate editor group history | Ctrl+Shift+Tab |
Go back | Ctrl+Alt+- |
Go forward | Ctrl+Shift+- |
Toggle Tab moves focus | Ctrl+M |
Editor management
Work | Keyboard Shortcut |
Close editor | Ctrl+W |
Close folder | Ctrl+K F |
Split editor | Ctrl+ |
Focus into 1st,2nd,3rdeditor group | Ctrl+1/ 2/3 |
Focus into previous editor group | Ctrl+K Ctrl+← |
Focus into next editor group | Ctrl+K Ctrl+→ |
Move editor left | Ctrl+Shift+PgUp |
Move editor right | Ctrl+Shift+PgDn |
Move active editor group left/up | Ctrl+K ← |
File management
Work | Keyboard Shortcut |
New File | Ctrl+N |
Open File... | Ctrl+O |
Save | Ctrl+S |
Save As... | Ctrl+Shift+S |
Close | Ctrl+W |
Close All | Ctrl+K Ctrl+W |
Reopen closed editor | Ctrl+Shift+T |
Keep preview mode editor open | Ctrl+K Enter |
Open next | Ctrl+Tab |
Open previous | Ctrl+Shift+Tab |
Copy path of active file | Ctrl+K P |
Reveal active file in Explorer | Ctrl+K R |
Show active file in new window/instance | Ctrl+K O |
Debug
Work | Keyboard Shortcut |
Toggle breakpoint | F9 |
Start/Continue | F5 |
Step into/out | F11/Shift+F11 |
Step over | F10 |
Stop | Shift+F5 |
Integrated terminal
Work | Keyboard Shortcut |
Show integrated terminal | Ctrl+` |
Create new terminal | Ctrl+Shift+` |
Copy selection | Ctrl+Shift+C |
Paste into active terminal | Ctrl+Shift+V |
Scroll up/down | Ctrl+Shift+↑/↓ |
Scroll page up/down | Shift+PgUp/PgDn |
Scroll to top/bottom | Shift+Home/End |
If you need the full PDF then click here to download it. It was created by the VS Code team. Check out our other articles about VS Code. Read how you can format code very easily in VS Code.