Memorize and Code at Lightning Speed! Convenient Shortcuts for Visual Studio Code thumbnail

Memorize and Code at Lightning Speed! Convenient Shortcuts for Visual Studio Code

Visual Studio Code has now become a standard development editor. We've put together a collection of convenient shortcuts that, once memorized, will enable you to code at lightning speed.

Posted at: 2023.10.24

Editorial Note: We earn a commission from partner links on keyboardista - English version. Commissions do not affect our editors' opinions or evaluations.

Editor Operation Shortcuts

For coding in Visual Studio Code, you can code faster by minimizing mouse use when writing code or opening files.
Shortcuts for fast coding depend on personal preference, but even just using the default shortcuts can significantly reduce key typing and mouse operations.

ShortcutFunction
Ctrl + PQuickly open files (Quick Open)
Alt + ↑/↓Move the cursor line up or down
Alt + Shift + IInsert cursors into multiple lines
Alt + ClickAdd/remove multiple cursors
Ctrl + GGo to a specific line (Go to Line)
Ctrl + Shift + KDelete the current line
Ctrl + EnterInsert a new line below
Ctrl + Shift + EnterInsert a new line above
Alt + Shift + ↓Copy the cursor line's text downward
Alt + Shift + ↑Copy the cursor line's text upward
Ctrl + DSelect the next matching text of the selected text
Ctrl + UGo back to the previous cursor position
Ctrl + LSelect the entire cursor line
Ctrl + ]Increase indent
Ctrl + [Decrease indent

Appearance Operation Shortcuts

When coding in Visual Studio Code, operation panels can sometimes get in the way. By closing panels with shortcuts while coding, you can code more comfortably.

ShortcutFunction
Ctrl + BToggle the sidebar display
Ctrl + Shift + EShow the file explorer
Ctrl + Shift + FSearch/replace within files, show panel

When using Visual Studio Code, you often operate on Git repositories daily. By remembering these shortcuts, you can operate the repository without using a mouse or trackpad, speeding up your work.

ShortcutFunction
Ctrl + Shift + GToggle the Git tab display
Ctrl + EnterStage changes in source control
Ctrl + Shift + EnterUnstage changes in source control
Ctrl + 0Commit changes in source control
Ctrl + K, Ctrl + CEnter a commit message in source control
Ctrl + K, Ctrl + AStage all changes in source control
Ctrl + K, SUnstage all changes in source control
Alt + CCompare files in source control
Alt + MMerge file changes in source control
Alt + AStage all changes in source control
Alt + UUnstage changes in source control