Are you finding the Keyboard Shortcuts for Visual Studio Code? Visual Studio Code provides shortcuts to help you quickly work on documents. Here is the list of all shortcuts that you can use. This post will help you to check and make your work faster with the most used.
Table of Contents
Editing
Cutline
Ctrl + X
Insert line bellow
Ctrl + ↩
Insert line above
Ctrl + ⇧ + ↩
Move line/selection up
Alt + ↑
Move line/selection down
Alt + ↓
Select word – Repeat select others occurrences
Ctrl + D
Delete Line
Ctrl + ⇧ + K
Indent current line(s)
Ctrl + ]
Un-indent current line(s)
Ctrl + [
Duplicate line(s) up/down
Alt + ⇧ + ↑/↓
Go to the begining of line
Home
Go to the end of line
End
Scroll line up
Ctrl + ↑
Scroll line down
Ctrl + ↓
Go to the begining of file
Ctrl + Home
Go to the end of file
Ctrl + End
Collapse region
Ctrl + ⇧ + [
Uncollapse region
Ctrl + ⇧ + ]
Collapse all regions
Ctrl + K Ctrl + 0
Uncoollapse all regions
Ctrl + K Ctrl + J
Toggle line comment
Ctrl + /
Toggle word wrap
Alt + Z
Navigation/Goto Anywhere
Show all Symbols
Goto line in current file
Ctrl + G
Quick-open files by name
Ctrl + P
Goto symbol
Ctrl + ⇧ + O
Show Problems panel
Ctrl + ⇧ + M
Go to next error warning
F8
Go to previous error warning
⇧ + F8
Navigate editor group history
Ctrl + ⇧ + Tab
Go back / forward
Alt + ← / →
General
Command prompt
Ctrl + ⇧ + P
Toggle side bar
Ctrl + KB
Show scope in status bar
Ctrl + ⇧ + Alt + P
Find/Replace
Find
Ctrl + F
Replace
Ctrl + H
Find next / previous
F3 / ⇧ + F3
Select all occurrences of Find match
Alt + ↩
Find in files
Ctrl + ⇧ + F
Add selection to the next Find match
Ctrl + D
Multi-cursor and selection
Insert cursor
Alt + Click
Undo last cursor operation
Ctrl + U
Insert cursor at end of each line selected
⇧ + Alt + I
Select current line
Ctrl + I
Select all occurrences of current selection
Ctrl + ⇧ + L
Select all occurrences of current word
Ctrl + F2
Expand selection
⇧ + Alt + →
Shrink selection
⇧ + Alt + ←
Column (box) selection
⇧ + Alt + (drag mouse)
Rich languages editing
Trigger suggestion
Ctrl + Space
Trigger parameter hints
Ctrl + ⇧ + Space
Format document
⇧ + Alt + F
Format selection
Ctrl + K Ctrl + F
Go to definition
F12
Peek definition
Alt + F12
Open Definition to the side
Ctrl + K F12
Trim trailing whitespace
Ctrl + K Ctrl + X
Change file language
Ctrl + K M
Editor management
Close editor
Ctrl + F4
Close folder
Ctrl + K F
Split editor in 1 / 2 / 3 parts
Ctrl + 1 / 2 / 3
Split view into two columns
Alt + ⇧ + 2
Revert view to single column
Alt + ⇧ + 1
Move editor left/right
Ctrl + ⇧ + PgUp / PgDn
Toggle editor layout (horizontal/vertical)
⇧ + Alt + 0
File management
New file
Ctrl + N
Open file…
Ctrl + O
Close current tab
Ctrl + W
Save
Ctrl + S
Save as…
Ctrl + ⇧ + S
Save all
Ctrl + K S
Reopen closed editor
Ctrl + ⇧ + T
Toggle tabs
Ctrl + Tab
Switch to tab number [NUM] where [NUM] <= number of tabs
Well, there you have it, Visual Studio Code shortcuts list. You might not have known about these shortcuts. If I’ve left important something out in this list, feedback is appreciated and welcome on the Make A Public List.
[…] Keyboard Shortcuts for Visual Studio Code […]
[…] Keyboard Shortcuts for Visual Studio Code […]
[…] Keyboard Shortcuts for Visual Studio Code […]