In Visual Studio Code Application, You press the shortcut keys on the Keyboard to help your coding & work quickly.
Windows Contents:
The following are Visual Studio Code keyboard shortcuts for developers should know for helping your coding.
1. Visual Studio Code keyboard shortcuts for Windows
General
Ctrl+Shift+P, F1 | Show Command Palette |
Ctrl+P | Quick Open, Go to File |
Ctrl+Shift+N | New Window/Instance |
Ctrl+Shift+W | Close Window/Instance |
Ctrl+, | User Settings |
Ctrl+K Ctrl+S | Keyboard Shortcuts |
Basic Editing
Ctrl+X | Cut Line (Empty Selection) |
Ctrl+C | Copy Line (Empty Selection) |
Alt+Arrow Up / Arrow Down | Move Line Up/Down |
Shift+Alt+Arrow Up / Arrow Down | 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/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+Arrow Up / Arrow Down | Scroll Line Up/Down |
Alt+PgUp / PgDn | Scroll Page Up/Down |
Ctrl+Shift+[ | Fold (Collapse) Region |
Ctrl+Shift+] | Unfold (Uncollapse) Region |
Ctrl+K Ctrl+[ | Fold (Collapse) All Subregions |
Ctrl+K Ctrl+] | Unfold (Uncollapse) All Subregions |
Ctrl+K Ctrl+0 | Fold (Collapse) All Regions |
Ctrl+K Ctrl+J | Unfold (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 |
Navigation
Ctrl+T | Show All Symbols |
Ctrl+G | Go To Line |
Ctrl+P | Go To File |
Ctrl+Shift+O | Go To Symbol |
Ctrl+Shift+M | Show Problems Panel |
F8 | Go To Next Error / Warning |
Shift+F8 | Go To Previous Error / Warning |
Ctrl+Shift+Tab | Navigate Editor Group History |
Alt+Arrow Left / Arrow Right | Go Back / Forward |
Ctrl+M | Toggle Tab Moves Focus |
Search & Replace
Ctrl+F | Find |
Ctrl+H | Replace |
F3 / Shift+F3 | Find Next/Previous |
Alt+Enter | Select All Occurences Of Find Match |
Ctrl+D | Add Selection To Next Find Match |
Ctrl+K Ctrl+D | Move Last Selection To Next Find Match |
Alt+C / R / W | Toggle Case-sensitive / Regex / Whole Word |
Multi-Cursor & Selection
Alt+Click | Insert Cursor |
Ctrl+Alt+Arrow Up / Arrow Down | 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 Current Selection |
Ctrl+F2 | Select All Occurrences Of Current Word |
Shift+Alt+Arrow Right | Expand Selection |
Shift+Alt+Arrow Left | Shrink Selection |
Shift+Alt+(drag mouse) | Column (box) Selection |
Ctrl+Shift+Alt+(arrow key) | Column (box) Selection |
Ctrl+Shift+Alt+PgUp / PgDn | Column (box) Selection Page Up / Down |
Rich Languages Editing
Ctrl+Space | Trigger Suggestion |
Ctrl+Shift+Space | Trigger Parameter Hints |
Shift+Alt+F | Format Document |
Ctrl+K Ctrl+F | Format Select |
F12 | Go To Definition |
Alt+F12 | Peek Definition |
Ctrl+K F12 | Open Definition To The Side |
Ctrl+. | Quick Fix |
Shift+F12 | Show References |
F2 | Rename Symbol |
Ctrl+K Ctrl+X | Trim Trailing Whitespace |
Ctrl+K M | Change File Language |
Editor Management
Ctrl+F4, Ctrl+W | Close Editor |
Ctrl+K F | Close Folder |
Ctrl+\ | Split Editor |
Ctrl+1 / 2 / 3 | Focus Into 1st, 2nd, or 3rd Editor Group |
Ctrl+K Ctrl+Arrow Left / Arrow Right | Focus Into Previous / Next Editor Group |
Ctrl+Shift+PgUp / PgDn | Move Editor Left / Right |
Ctrl+K Arrow Left / Arrow Right | Move Active Editor Group |
File Management
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 | Open Previous |
Ctrl+K P | Copy Path Of Active File |
Ctrl+K R | Reveal Active File In Explorer |
Ctrl+K O | Show Active File In New Window/Instance |
Display
F11 | Toggle Full Screen |
Shift+Alt+0 | Toggle Editor Layout (Horizontal/Vertical) |
Ctrl+= / – | Zoom In/Out |
Ctrl+B | Toggle Sidebar Visibility |
Ctrl+Shift+E | Show Explorer / Toggle Focus |
Ctrl+Shift+F | Show Search |
Ctrl+Shift+G | Show Source Control |
Ctrl+Shift+D | Show Debug |
Ctrl+Shift+X | Show Extensions |
Ctrl+Shift+H | Replace In Files |
Ctrl+Shift+J | Toggle Search Details |
Ctrl+Shift+U | Show Output Panel |
Ctrl+Shift+V | Open Mardown Preview |
Ctrl+K V | Open Markdown Preview To The Side |
Ctrl+K Z | Zen Mode (Esc Esc To Exti) |
Debug
F9 | Toggle Breakpoint |
F5 | Start/Continue |
Shift+F5 | Stop |
F11 / Shift+F11 | Step Into/Out |
F10 | Step Over |
Ctrl+K Ctrl+I | Show Hover |
Integrated Terminal
Ctrl+` | Show Integrated Terminal |
Ctrl+Shift+` | Create New Terminal |
Ctrl+C | Copy Selection |
Ctrl+V | Paste Into Active Terminal |
Ctrl+Arrow Up / Arrow Down | Scroll Up / Down |
Shift+PgUp / PgDn | Scroll Page Up / Down |
Ctrl+Home / End | Scroll To Top / Bottom |