Skip to main content

VSCode Keyboard Shortcuts for Developers

General Shortcuts

CommandDescription
Ctrl + Shift + PShow Command Palette
Ctrl + Shift + XShow Extensions

Basic Editing

CommandDescription
Ctrl + ASelect All
Ctrl + CCopy line
Ctrl + DDuplicate line
Ctrl + LSelect current line
Ctrl + XCut line
Ctrl + UUndo last cursor operation
Ctrl + VPaste
Ctrl + YRedo Changes
Ctrl + ZUndo Changes
Alt + DownMove Line Down
Alt + UpMove Line Up

Rich Languages Editing

CommandDescription
F2Rename Symbol
Shift + F12Go to References
F12Go to Definition
Ctrl + SpaceTrigger Suggest
Ctrl + .Quick Fix

Multi-cursor and Selection

CommandDescription
Alt + ClickInsert cursor
Shift + Alt + UpArrowCopy line up
Shift + Alt + DownArrowCopy line down
Shift + Alt + ClickSelect text in blocks
Ctrl + Alt + UpArrowAdd cursor above
Ctrl + Alt + DownArrowAdd cursor below
Ctrl + Shift + KDelete line
Ctrl + Shift + LSelect all occurrences of current selection

Display

CommandDescription
Ctrl + Shift + FShow Search

Search and Replace

CommandDescription
Ctrl + FFind
Ctrl + HReplace
Ctrl + Shift + FFind in Files
Ctrl + Shift + HReplace in Files
Ctrl + Shift + EnterReplace All
CommandDescription
Ctrl + PGo to File
Ctrl + JToggle panel (Opens/closes terminal)
Ctrl + BToggle primary sidebar
Ctrl + Shift + EGo to explorer
Ctrl + Shift + XGo to extensions
Ctrl + Shift + DGo to Run and Debug
Ctrl + Shift + GGo to Source Control
Ctrl + Shift + HGo to Search
Ctrl + Shift + JGo to Problems
Ctrl + ↑/↓Scroll up/down
Ctrl+ Home/EndScroll top/bottom

Editor Management

CommandDescription
Ctrl + WClose Editor
Ctrl + \Split Editor
Ctrl + Shift + PgUpMove Editor Left
Ctrl + Shift + PgDnMove Editor Right

File Management

CommandDescription
Ctrl + NNew Text File
Ctrl + OOpen
Ctrl + SSave
Ctrl + Shift + SSave As
Ctrl + WClose
Ctrl + Shift + TOpen Recently Closed Editor

Debug

CommandDescription
F9Toggle Breakpoint
F5Start
Ctrl + F5Start (without debugging)
F11Step Into

Integrated Terminal

CommandDescription
Ctrl + `Show integrated terminal
Ctrl + Shift + `Create new integrated terminal