Developer Keyboard Shortcuts
VS Code
| Action | Windows/Linux Shortcut | macOS Shortcut |
|---|---|---|
| Move lines and blocks | Alt + ↓ or ↑ |
Option + ↓ or ↑ |
| Duplicate lines and blocks | Shift + Alt + ↓ or ↑ |
Shift + Option + ↓ or ↑ |
| Toggle comments | Ctrl + / |
Command + / |
| Format File | alt + Shift + F |
Option + Shift + F |
| Preview html/markdown file | Ctrl + Shift + V |
Command + Shift + V |
| Toggle Sidebar | Ctrl + B |
Command + B |
| Open the terminal | Ctrl + J |
Command + J |
| Open settings | Ctrl + , |
Command + , |
| Open the command palette | Ctrl + Shift + P |
Command + Shift + P |
| Edit multiple lines at once | Alt + click lines |
Option + click lines |
| Find in file | Ctrl + F |
Command + F |
| Find globally | Ctrl + Shift + F |
Command + Shift + F |
General Computing
| Action | Windows/Linux Shortcut | macOS Shortcut |
|---|---|---|
| Undo | Ctrl + Z |
Command + Z |
| Redo | Ctrl + Y |
Command + Z |
| Select All | Ctrl + A |
Command + A |
| Copy | Ctrl + C |
Command + C |
| Cut | Ctrl + X |
Command + X |
| Paste | Ctrl + V |
Command + V |
| Select text easier | Click beginning/end of selection, | |
| then: | ||
Shift + click End of selection |
Shift + click End of selection |
|
| Without mouse: | ||
Shift + Ctrl + ← or → |
Shift + Option + ← or → |
|
| Move with arrow keys faster | Ctrl + ← or → |
Option + ← or → |