50 Keyboard Shortcuts that will make you a Visual Studio Code Pro.
Chukwuemeka, Samuel Chinaza
Posted on February 8, 2023
Visual studio code (VS Code) is one of the most popular IDE and text editor that most software developers use. It provides support for many languages and frameworks. And it's open source and free to use.
This article contains 50 Keyboard Shortcuts that every developer need to know for easy programming. It'll help you save time and and make using Vs Code easy for you.
Shortcuts and what they do.
-
ctrl
+N
: Open a new file. -
Ctrl
+S
: Save file. -
Ctrl
+Shift
+S
: Save as. -
Ctrl
+X
: Cut line. -
Ctrl
+C
: Copy line. -
Ctrl
+F4
: Close file. -
Ctrl
+K
thenCtrl
+W
: Close all. -
Ctrl
+Shift
+T
: Reopen closed editor. -
Ctrl
+Enter
: Insert new line or Insert line below. -
Ctrl
+Shift
+Enter
: Insert line above. -
Ctrl
+Shift
+N
: New window/Instance. -
Ctrl
+Shift
+W
: Close window/instance. -
Ctrl
+K
thenP
: Copy path of active file. -
Ctrl
+Home
: Go to beginning of file. -
Ctrl
+End
: Go to end of file. -
Home
: Go to beginning of line. -
End
: Go to end of line. -
Ctrl
+K
thenCtrl
+C
: Add line comment. -
Ctrl
+K
thenCtrl
+U
: Remove line comment. -
Ctrl
+/
: Toggle line comment. -
Shift
+Alt
+A
: Toggle block comment. -
Ctrl
+T
: Show all symbols. -
Ctrl
+G
: Go to line. -
Ctrl
+P
: Go to file. -
Ctrl
+F
: Find. -
Ctrl
+H
: Replace. -
Ctrl
+Spacebar
: Trigger suggestion. -
Ctrl
+.
: Quick fix. -
Ctrl
+K
thenM
: Change file language. -
Ctrl
+=
: Zoom in. -
Ctrl
+-
: Zoom out. -
Ctrl
+F4
thenCtrl
+W
: Close editor. -
Ctrl
+Shift
+.
: Replace with next value. -
Ctrl
+Shift
+/
: Replace with previous value. -
Ctrl
+K
thenF
: Close folder. -
Ctrl
+\
: Split folder. -
Ctrl
+Shift
+\
: Jump to matching bracket. -
Shift
+F8
: Go to previous error/warning. -
Alt
+Right arrow
: Go forward. -
Alt
+Left arrow
: Go back. -
Alt
+Enter
: Select all occurrences to find match. -
Alt
+Up arrow
: Move line up. -
Alt
+Down arrow
: Move line down. -
Shift
+Alt
+Up arrow
: Copy line up. -
Shift
+Alt
+Down arrow
: Copy line down. -
F12
: Go to definition. -
F11
: Toggle screen. -
F2
: Rename symbol. -
Tab
: Emmet expand. -
F8
: Go to next error/warning.
💖 💪 🙅 🚩
Chukwuemeka, Samuel Chinaza
Posted on February 8, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.