Visual Studio Code Cheat Sheet

Command Description Shortcut
Open Command Palette Access all available commands based on your current context. Cmd+Shift+P / F1
Quick Open Quickly open files. Cmd+P
Toggle Sidebar Show or hide the sidebar. Cmd+B
Split Editor Split the active editor into two. Cmd+\
Close Editor Close the active editor. Cmd+W
Save Save the current file. Cmd+S
Save All Save all files. Cmd+Option+S
Find Find text in the current file. Cmd+F
Replace Find and replace text in the current file. Cmd+Option+F
Go to Line Navigate to a specific line number. Cmd+G
Toggle Terminal Show or hide the integrated terminal. Ctrl+`
New Terminal Create a new terminal instance. Cmd+Shift+`
Toggle Full Screen Toggle full screen mode. Ctrl+Cmd+F
Toggle Zen Mode Toggle Zen Mode. Cmd+K Z

Multiple Cursors

Command Description Shortcut
Insert Cursor Insert cursor at current position. Option+Click
Insert Cursor Above / Below Insert cursor above or below current position. Cmd+Option+Up / Down
Undo Last Cursor Operation Undo the last cursor operation. Cmd+U
Add Next Occurrence Add selection to next find match. Cmd+D
Add All Occurrences Add selection to all find matches. Cmd+Shift+L
Select Current Line Select the current line. Cmd+L

Code Editing & Refactoring

Command Description Shortcut
Move Line Up/Down Move the current line up or down. Option+Up / Down
Copy Line Up/Down Copy the current line up or down. Shift+Option+Up / Down
Delete Line Delete the current line. Cmd+Shift+K
Toggle Comment Comment/uncomment current line or selection. Cmd+/
Rename Symbol Rename symbol/variable across the project. F2
Format Document Format the entire document. Shift+Option+F