Back to Cheat Sheets
VSCode Keyboard Shortcuts
Useful keyboard shortcuts to improve productivity in Visual Studio Code.
| Action | Command | Details |
|---|---|---|
| Command Palette | Ctrl + Shift + P |
Open command palette to run any command. |
| Quick Open | Ctrl + P |
Quickly open files by name. |
| Toggle Terminal | Ctrl + ` |
Open or close integrated terminal. |
| Find | Ctrl + F |
Search within the current file. |
| Replace | Ctrl + H |
Replace text in the current file. |
| Find in Files | Ctrl + Shift + F |
Search across files. |
| Go to Definition | F12 |
Jump to definition of a symbol. |
| Peek Definition | Alt + F12 |
View definition inline without leaving current file. |
| Rename Symbol | F2 |
Rename a variable or function. |
| Format Document | Shift + Alt + F |
Auto-format the current document. |
| Toggle Sidebar | Ctrl + B |
Show or hide sidebar. |
| New File | Ctrl + N |
Create a new file. |
| Save File | Ctrl + S |
Save the current file. |
| Close File | Ctrl + W |
Close current editor tab. |
| Split Editor | Ctrl + \ |
Split editor into multiple views. |
| Move Line Up/Down | Alt + Up/Down Arrow |
Move the current line up or down. |