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.

ActionShortcut
Quickly open files (Quick Open)
CtrlP
Move the cursor line up or down
Alt+
/
Insert cursors into multiple lines
ShiftAltI
Add/remove multiple cursors
AltCLICK
Go to a specific line (Go to Line)
CtrlG
Delete the current line
CtrlShiftK
Insert a new line below
CtrlEnter
Insert a new line above
CtrlShiftEnter
Copy Line Down
ShiftAlt
Copy Line Up
ShiftAlt
Select the next matching text of the selected text
CtrlD
Go back to the previous cursor position
CtrlU
Select the entire cursor line
CtrlL
Increase indent
Ctrl]
Decrease indent
Ctrl[

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.

ActionShortcut
Toggle the sidebar display
CtrlB
Show the file explorer
CtrlShiftE
Search/replace within files, show panel
CtrlShiftF

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.

ActionShortcut
Toggle the Git tab display
CtrlShiftG
Stage changes in source control
CtrlEnter
Unstage changes in source control
CtrlShiftEnter
Commit changes in source control
Ctrl0
Compare files in source control
AltC
Merge file changes in source control
AltM
Stage all changes in source control
AltA
Unstage changes in source control
AltU