π οΈ General Shortcuts
Command Palette
Ctrl + Shift + P (Windows/Linux) or Cmd + Shift + P (Mac)
Opens the command palette to search for commands.
Quick Open File
Ctrl + P (Windows/Linux) or Cmd + P (Mac)
Quickly open files by name.
Open New Window
Ctrl + Shift + N (Windows/Linux) or Cmd + Shift + N (Mac)
Opens a new VS Code window.
Close Window
Ctrl + Shift + W (Windows/Linux) or Cmd + Shift + W (Mac)
Closes the current window.
π File Management
New File
Ctrl + N (Windows/Linux) or Cmd + N (Mac)
Create a new file.
Save File
Ctrl + S (Windows/Linux) or Cmd + S (Mac)
Save the current file.
Save All Files
Ctrl + K, S (Windows/Linux) or Cmd + K, S (Mac)
Save all open files.
Close File
Ctrl + W (Windows/Linux) or Cmd + W (Mac)
Close the current file.
Close All Files
Ctrl + K, W (Windows/Linux) or Cmd + K, W (Mac)
Close all open files.
π Navigation
Go to Definition
F12
Navigate to the definition of a function or variable.
Go to Line
Ctrl + G (Windows/Linux) or Cmd + G (Mac)
Go to a specific line number in the current file.
Go to Symbol
Ctrl + Shift + O (Windows/Linux) or Cmd + Shift + O (Mac)
Jump to a specific symbol within the file.
Go to File
Ctrl + P (Windows/Linux) or Cmd + P (Mac)
Open a file by name or path.
Switch Between Tabs
Ctrl + Tab / Ctrl + Shift + Tab (Windows/Linux) or Cmd + Tab / Cmd + Shift + Tab (Mac)
Switch between open tabs.
βοΈ Editing
Undo Action
Ctrl + Z (Windows/Linux) or Cmd + Z (Mac)
Undo the last action.
Redo Action
Ctrl + Y (Windows/Linux) or Cmd + Shift + Z (Mac)
Redo the last undone action.
Find in File
Ctrl + F (Windows/Linux) or Cmd + F (Mac)
Search for a string within the current file.
Find and Replace
Ctrl + H (Windows/Linux) or Cmd + H (Mac)
Find and replace text in the current file.
Select All
Ctrl + A (Windows/Linux) or Cmd + A (Mac)
Select everything in the file.
Copy Line Up/Down
Alt + Shift + β/β (Windows/Linux) or Option + Shift + β/β (Mac)
Duplicate the current line upwards or downwards.
Delete Line
Ctrl + Shift + K (Windows/Linux) or Cmd + Shift + K (Mac)
Delete the current line.
Move Line Up/Down
Alt + β/β (Windows/Linux) or Option + β/β (Mac)
Move the current line or selection up or down.
ποΈ Multi-Cursor & Selection
Add Cursor Above/Below
Ctrl + Alt + β/β (Windows/Linux) or Cmd + Option + β/β (Mac)
Add a cursor to the line above or below.
Select All Occurrences of Word
Ctrl + D (Windows/Linux) or Cmd + D (Mac)
Select the next occurrence of the word under the cursor.
Select All Occurrences of Word (All)
Ctrl + Shift + L (Windows/Linux) or Cmd + Shift + L (Mac)
Select all occurrences of the word under the cursor.
π» Integrated Terminal
Toggle Integrated Terminal
Ctrl + (backtick) (Windows/Linux) or Cmd +
(Mac)
Open or close the integrated terminal.
Create New Terminal
Ctrl + Shift + (Windows/Linux) or Cmd + Shift + (Mac)
Open a new terminal window.
Clear Terminal
Ctrl + L (Windows/Linux) or Cmd + K (Mac)
Clear the terminal screen.
π Debugging
Start/Stop Debugging
F5
Start or stop the debugger.
Step Over
F10
Step over the current line of code during debugging.
Step Into
F11
Step into the function or method call during debugging.
Step Out
Shift + F11
Step out of the current function during debugging.
Top comments (0)