Skip to content

VS Code ​

This cheatsheet covers the essential, productivity-boosting shortcuts for Visual Studio Code on Windows and Linux.

🔍 General & Interface ​

ShortcutAction
Ctrl + Shift + P or F1Open Command Palette (access all VS Code settings/commands)
Ctrl + PQuick Open (quickly search and open files by name)
Ctrl + ` (Backtick)Toggle integrated terminal
Ctrl + BToggle Side Bar visibility
Ctrl + Shift + EOpen Explorer view (file tree)
Ctrl + Shift + FOpen Global Search across all files
Ctrl + , (Comma)Open User Settings

📝 Editing & Text Manipulation ​

ShortcutAction
Ctrl + XCut line (if no selection, cuts the entire current line)
Ctrl + CCopy line (if no selection, copies the entire current line)
Alt + ↓ / ↑Move current line down / up
Shift + Alt + ↓ / ↑Copy current line down / up
Ctrl + Shift + KDelete entire current line
Ctrl + EnterInsert a new line below without breaking current line
Ctrl + Shift + EnterInsert a new line above
Ctrl + /Toggle line comment
Shift + Alt + AToggle block comment

🎯 Multi-Cursor & Selection ​

Multi-cursors let you edit multiple places in a file simultaneously.

ShortcutAction
Alt + ClickInsert cursor at the clicked position
Ctrl + Alt + ↓ / ↑Insert cursor directly below / above
Ctrl + DSelect the next occurrence of the current word
Ctrl + UUndo the last cursor or selection change
Shift + Alt + IInsert cursors at the end of every line in your current selection
Ctrl + LSelect current line

🧭 Navigation ​

ShortcutAction
Ctrl + GGo to a specific line number
Ctrl + Shift + OGo to a specific symbol/function in the current file
F12Go to Definition (jump to where a variable/function is declared)
Peek DefinitionAlt + F12 (view the definition inline without moving your cursor)
Ctrl + Shift + \Jump between matching brackets {}, [], ()
Alt + ← / →Go back / forward in your navigation history

🗂️ Window & Editor Management ​

ShortcutAction
Ctrl + WClose the active editor tab
Ctrl + \Split the editor layout vertically
Shift + Alt + 0Toggle vertical/horizontal editor layout
Ctrl + 1 / 2 / 3Focus into the 1st, 2nd, or 3rd editor group
Ctrl + Alt + → / ←Move active editor to next/previous group
Ctrl + Shift + PgUp / PgDnMove editor tab left / right within its group
Ctrl + K then ← / →Move active editor group (rearrange layout)
Ctrl + TabSwitch to the next most recently used open file

💻 Integrated Terminal ​

ShortcutAction
Ctrl + ` (Backtick)Toggle integrated terminal panel
Ctrl + Shift + `Create new terminal instance
Ctrl + Shift + 5Split terminal pane
Ctrl + PageUp / PageDownSwitch between terminal instances
Ctrl + Shift + \Focus terminal tabs view
Shift + PageUp / PageDownScroll page up / down in terminal history
Ctrl + ↑ / ↓Scroll line up / down in terminal history (when terminal is focused)
Ctrl + Shift + COpen a new external terminal (OS system terminal)

💡 Pro-Tip: If you are migrating to VS Code from another tool like IntelliJ, Eclipse, Vim, or Sublime Text, you don't have to relearn everything. Open the Command Palette (Ctrl + Shift + P), type Keymaps, and select Install Keymap Extensions to find pre-made layouts matching your old editor.