Hi, Welcome to the Codewithimraan blog, in this article we’ll discuss Visual Studio – VS CODE Shortcuts in every aspect
Let’s jump into it!
First of all, we’ll discuss about Windows Keyboard Shortcuts:-
VS Code Shortcuts for Windows
General
Shortcuts
Used For
Ctrl+shift+P, F1
Show Command Palette
Ctrl+P
Quick Open, Go to File
Ctrl+,
User settings
Ctrl+shift+N
New Window
Ctrl+shift+W
Close Window
Ctrl+k+Ctrl+s
Keyboard Shortcuts
Navigation
Shortcuts
Used For
Ctrl+T
Go to the Next Warning or error
Ctrl+G
Go to line
Ctrl+P
Go to file
Ctrl+shift+O
Go to symbol
Ctrl+shift+M
Show Problem Panel
F8
Go to Next Warning or error
Ctrl + Shift + Tab
Navigate editor group history
Shift + F8
Go to Previous Warning or error
Basic Editing
Shortcuts
Used For
Ctrl+X
cut line
Ctrl+c
copy line
Shift + Alt +↓/↑
Copy line up/down
Ctrl+shift+K
Delete line
Ctrl+Enter
Insert line below
Ctrl+shift+Enter
Insert line above
Ctrl + Shift + \
Jump to matching Bracket
Ctrl +]/[
indent and outdent line
Home / End
Go to beginning & end of line
Ctrl+Home
Go to beginning of file
Ctrl+End
Go to end of file
Ctrl + ↓/↑
Scroll line Up and down
Alt + PgUp +PgDn
Scroll Page up and Down
Ctrl + Shift + [
Fold Region
Ctrl + Shift + ]
Unfold Region
Ctrl + K Ctrl+[
collapse all Subregions
Ctrl + K Ctrl+]
Uncollapse all Subregions
Ctrl + K Ctrl+O
collapse all regions
Ctrl + K Ctrl+J
Uncollapse all regions
Ctrl + K Ctrl+C
Add Line comment
Ctrl + K Ctrl+U
Remove line comment
Ctrl+/
Toggle Line comment
Shift + Alt +A
Toggle Block comment
Alt +Z
Toggle word wrap
Editor Management
Shortcuts
Used For
Ctrl+ F4 , Ctrl+W
Cloase editor
Ctr+ K F
Close folder
Ctrl+\
split editor
Ctrl+1/2/3
Focus into 1st 2nd 3rd editor Group
Ctrl+K Ctrl+←/→
Move active editor group
Ctrl+k ←/→
Move active editor gropu
Search and replace
Shortcuts
Used For
Ctrl+ F4
Find
Ctr+H
Replace
F3 / Shift +F3
Find Next /Previous
Ctrl+D
Add selection to next find match
Alt +Enter
Toggle case-sensitive/whole-word
Ctrl+k Ctrl+D
Select all occurrences of Find Match
Alt + C/R/W
Toggle case-sensitive/ whole word
Rich Languages Editing
Shortcuts
Used For
Ctrl+ Space , Ctrl +I
Trigger Suggestion
Ctrl+ Shift+ Space
Trigger Parameter hints
Shift +Alt+F
Format Document
Ctrl+K Ctrl+F
Format Selection
F2
Go to definition
Alt +F12
peek Definition
Ctrl +K F12
Open Definition to the side
Ctrl+.
Quick Fix
Shift +F12
Show Reference
F2
Rename Symbol
Ctrl + K Ctrl+X
Trim Trailing whitespace
Ctrl + K M
Change file Language
Multi Cursor and Selection
Shortcuts
Used For
Alt + click
Insert Cursor
Ctrl + Alt + ↓/↑
Insert cursor above /below
Ctrl +U
Undo last cursor operation
Shift + Alt + I
Insert Cursor at end of each line selected
Ctrl +L
Select Current Line
Ctrl + Shift + L
Select all occurrences of the current Selection
Ctrl + F2
Select all occurrences of the current Word
Shift+Alt+→
Expand Selection
Shift+Alt+←
Shrink Selection
Shift+Alt+ drag Mouse
Column selection
Ctrl +Shift+Alt+ Arrow key
Column selection
Ctrl +Shift+Alt+ PgUp/ PgDn
Column selection page up/down
File Management
Shortcuts
Used For
Ctrl+N
New file
Ctrl +O
Open File
Ctrl +S
Save
Ctrl+Shift+S
Save as
Ctrl +K S
Save all
Ctrl +F4
Close
Ctrl + K Ctrl +W
Close all
Ctrl+Shift+T
reopen closed editor
Ctrl+K Enter
Keep Preview Mode editor open
Ctrl+tab
Open Next
Ctrl +Shift+tab
Show Active file in New Window
Ctrl +K P
Copy path of active file
Ctrl +K R
Real active file in Explorer
Ctrl +K O
Show Active file in New window
Display
Shortcuts
Used For
F11
Zoom in/out
Shift +Alt+O
Toggle Editor layout
Ctrl +=/-
Zoon in/out
Ctrl+B
Toggle Sidebar Visibility
Ctrl+Shift+E
Show Explorer
Ctrl+Shift+F
Show search
Ctrl+Shift+D
Show debug
Ctrl+Shift+G
Show Source control
Ctrl+Shift+X
Show extensions
Ctrl+Shift+H
Replace in files
Ctrl+Shift+J
Toggle Search details
Ctrl+Shift+U
Show Output oanel
Ctrl+Shift+V
open markdown Preview
Ctrl +K V
Open Markdown Preview to the side
Integrated Terminal
Shortcuts
Used For
Ctrl+’
show integrated termianl
Ctrl+shift+’
Create New ternmianl
Ctrl +C
Copy selection
Ctrl+V
Paste into active terminal
Ctrl+↓/↑
Scroll up/down
Shift+PgUp+PgDn
Scroll page up/down
Ctrl+Home/End
Scroll to top/bottom
Debug
Shortcuts
Used For
F9
Toggle Breakpoint
F5
Start/continue
Shift+F5
Stop
F11/Shift+F11
Step into/out
F10
Step Over
Ctrl+K Ctrl+I
Show hover
There we go above i’ve listed all these shortcuts from VS official site, If you have any doubts or queries pls let me know in the comment section and share this content to your programmer friends
primer-8
Very nice