Hi guys, we all love VS code and using VS Code shortcuts, you can save your lots of time. So here I have mentioned important VS Code Cheat Sheet for 2022.
Editing 1
- shift+ctrl+β΅ - Insert line above
- ctrl+β΅ - Insert line below
- shift+ctrl+K - Delete line
- shift+alt+UP - Copy line up
- shift+alt+DOWN - Copy line down
- alt+UP - Move line up
- alt+DOWN - Move line down
Editing 2
- shift+ctrl+] - Unfold region
- shift+ctrl+[ - Fold region
- ctrl+[ - Outdent line
- ctrl+] - Indent line
- shift+ctrl+\ - Jump to matching bracket
Editing 3
- alt+Z - Toggle word wrap
- shift+alt+A - Toggle block comment
- ctrl+/ - Toggle line comment
- ctrl+Kctrl+J - Unfold all regions
- ctrl+Kctrl+0 - Fold all regions
- ctrl+Kctrl+] - Unfold all subregions
- ctrl+Kctrl+[ - Fold all subregions
Multi-cursor / Selection 1
- shift+ctrl+L - Select all occurrences of current selection
- ctrl+I - Select current line
- shift+alt+I - Insert cursor at end of each line selected
- ctrl+U - Undo last cursor operation
- alt+ctrl+DOWN - Insert cursor below
- alt+ctrl+UP - Insert cursor above
Multi-cursor / Selection 2
- shift+alt+ctrl+LEFT - Column box selection left
- shift+alt+ctrl+RIGHT - Column box selection right
- shift+alt+ctrl+DOWN - Column box selection down
- shift+alt+ctrl+UP - Column box selection up
- shift+alt+LEFT - Shrink selection
- shift+alt+RIGHT - Expand selection
Search / Replace 1
- ctrl+Kctrl+D - Move last selection to next Find match
- alt+β΅ - Select all occurrences of Find match
- ctrl+D - Add selection to next Find match
- shift+F3 - Find previous
- F3 - Find next
- ctrl+H - Replace
- ctrl+F - Find
Rich Languages Editing 1
- alt+F12 - Peek definition
- F12 - Go to definition
- ctrl+Kctrl+F - Format selection
- shift+alt+F - Format document
- shift+ctrl+[SPACE] - Trigger parameter hints
- ctrl+[SPACE] - Trigger suggestion
Rich Languages Editing 2
- ctrl+KM - Change file language
- ctrl+Kctrl+X - Trim trailing whitespace
- F2 - Rename symbol
- shift+F12 - Show references
- ctrl+. - Quick fix
- ctrl+KF12 - Open definition to the side
Navigation
- ctrl+M - Toggle tab moves focus
- alt+RIGHT - Go forward
- alt+LEFT - Go back
- shift+F8 - Go to previous error or warning
- F8 - Go to next error or warning
- shift+ctrl+M - Show problems panel
- shift+ctrl+O - Go to symbol...
- ctrl+P - Go to file...
- ctrl+G - Go to line...
Editor Management
- ctrl+3 - Focus into 3rd editor window
- ctrl+2 - Focus into 2nd editor window
- ctrl+1 - Focus info 1st editor window
- ctrl+\ - Split editor
- ctrl+KF - Close folder
Comment down your Favorite shortcut you use daily
Top comments (0)