./Keyboard Shortcuts/Visual Studio Code/
Basic Editing
| Key | Command |
|---|---|
| Ctrl+X | Cut line (empty selection) |
| Ctrl+C | Copy line (empty selection) |
| Ctrl+V | Paste |
| Ctrl+Shift+K | Delete Line |
| Ctrl+Enter | Insert Line Below |
| Ctrl+Shift+Enter | Insert Line Above |
| Alt+Down | Move Line Down |
| Alt+Up | Move Line Up |
| Shift+Alt+Down | Copy Line Down |
| Shift+Alt+Up | Copy Line Up |
| Ctrl+Z | Undo |
| Ctrl+Y | Redo |
| Ctrl+D | Add Selection To Next Find Match |
| Ctrl+K Ctrl+D | Move Last Selection To Next Find Match |
| Ctrl+U | Undo last cursor operation |
| Shift+Alt+I | Insert cursor at end of each line selected |
| Ctrl+Shift+L | Select all occurrences of current selection |
| Ctrl+F2 | Select all occurrences of current word |
| Ctrl+L | Select current line |
| Ctrl+Alt+Down | Insert Cursor Below |
| Ctrl+Alt+Up | Insert Cursor Above |
| Ctrl+Shift+\ | Jump to matching bracket |
| Ctrl+] | Indent Line |
| Ctrl+[ | Outdent Line |
| Home | Go to Beginning of Line |
| End | Go to End of Line |
| Ctrl+End | Go to End of File |
| Ctrl+Home | Go to Beginning of File |
| Ctrl+Down | Scroll Line Down |
| Ctrl+Up | Scroll Line Up |
| Alt+PageDown | Scroll Page Down |
| Alt+PageUp | Scroll Page Up |
| 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 |
| Ctrl+F | Find |
| Ctrl+H | Replace |
| Enter | Find Next |
| Shift+Enter | Find Previous |
| Alt+Enter | Select All Occurrences of Find Match |
| Alt+C | Toggle Find Case Sensitive |
| Alt+R | Toggle Find Regex |
| Alt+W | Toggle Find Whole Word |
| Ctrl+M | Toggle Use of Tab Key for Setting Focus |
| Alt+Z | Toggle Word Wrap |
Rich Languages Editing
| Key | Command |
|---|---|
| Ctrl+Space | Trigger Suggest |
| Ctrl+Shift+Space | Trigger Parameter Hints |
| Shift+Alt+F | Format Document |
| Ctrl+K Ctrl+F | Format Selection |
| F12 | Go to Definition |
| Ctrl+K Ctrl+I | Show Hover |
| Alt+F12 | Peek Definition |
| Ctrl+K F12 | Open Definition to the Side |
| Ctrl+. | Quick Fix |
| Shift+F12 | Go to References |
| F2 | Rename Symbol |
| Ctrl+Shift+. | Replace with Next Value |
| Ctrl+Shift+, | Replace with Previous Value |
| Shift+Alt+Right | Expand AST Selection |
| Shift+Alt+Left | Shrink AST Selection |
| Ctrl+K Ctrl+X | Trim Trailing Whitespace |
| Ctrl+K M | Change Language Mode |
Navigation
| Key | Command |
|---|---|
| Ctrl+T | Show All Symbols |
| Ctrl+G | Go to Line... |
| Ctrl+P | Go to File..., Quick Open |
| Ctrl+Shift+O | Go to Symbol... |
| Ctrl+Shift+M | Show Problems |
| F8 | Go to Next Error or Warning |
| Shift+F8 | Go to Previous Error or Warning |
| Ctrl+Shift+P or F1 | Show All Commands |
| Ctrl+Tab | Navigate Editor Group History |
| Alt+Left | Go Back |
| Alt+Left | Go back in Quick Input |
| Alt+Right | Go Forward |
Editor/Window Management
| Key | Command |
|---|---|
| Ctrl+Shift+N | New Window |
| Alt+F4 | Close Window |
| Ctrl+F4 | Close Editor |
| Ctrl+K F | Close Folder |
| Ctrl+\ | Split Editor |
| Ctrl+1 | Focus into First Editor Group |
| Ctrl+2 | Focus into Second Editor Group |
| Ctrl+3 | Focus into Third Editor Group |
| Ctrl+Shift+PageUp | Move Editor Left |
| Ctrl+Shift+PageDown | Move Editor Right |
| Ctrl+K Left | Move Active Editor Group Left |
| Ctrl+K Right | Move Active Editor Group Right |
| Ctrl+Alt+Right | Move Editor into Next Group |
| Ctrl+Alt+Left | Move Editor into Previous Group |
File Management
| Key | Command |
|---|---|
| Ctrl+N | New File |
| Ctrl+O | Open File... |
| Ctrl+S | Save |
| Ctrl+K S | Save All |
| Ctrl+Shift+S | Save As... |
| Ctrl+F4 | Close |
| Ctrl+K W | Close Group |
| Ctrl+K Ctrl+W | Close All |
| Ctrl+Shift+T | Reopen Closed Editor |
| Ctrl+K Enter | Keep Open |
| Ctrl+K P | Copy Path of Active File |
| Ctrl+K R | Reveal Active File in Windows |
| Ctrl+K O | Show Opened File in New Window |
Display
| Key | Command |
|---|---|
| F11 | Toggle Full Screen |
| Ctrl+K Z | Toggle Zen Mode |
| Escape Escape | Leave Zen Mode |
| Ctrl+= | Zoom in |
| Ctrl+- | Zoom out |
| Ctrl+Numpad0 | Reset Zoom |
| 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 Run |
| Ctrl+Shift+X | Show Extensions |
| Ctrl+Shift+U | Show Output |
| Ctrl+Q | Quick Open View |
| Ctrl+Shift+C | Open New Command Prompt |
| Ctrl+Shift+V | Toggle Markdown Preview |
| Ctrl+K V | Open Preview to the Side |
| Ctrl+` | Toggle Integrated Terminal |
Search
| Key | Command |
|---|---|
| Ctrl+Shift+F | Show Search |
| Ctrl+Shift+H | Replace in Files |
| Alt+C | Toggle Match Case |
| Alt+W | Toggle Match Whole Word |
| Alt+R | Toggle Use Regular Expression |
| Ctrl+Shift+J | Toggle Search Details |
| F4 | Focus Next Search Result |
| Shift+F4 | Focus Previous Search Result |
| Down | Show Next Search Term |
| Up | Show Previous Search Term |
Search Editor
| Key | Command |
|---|---|
| Alt+Enter | Open Results In Editor |
| Escape | Focus Search Editor Input |
| Ctrl+Shift+R | Search Again |
| Ctrl+Shift+Backspace | Delete File Results |
Preferences
| Key | Command |
|---|---|
| Ctrl+, | Open Settings |
| Ctrl+K Ctrl+S | Open Keyboard Shortcuts |
| Ctrl+K Ctrl+T | Select Color Theme |
Debug
| Key | Command |
|---|---|
| F9 | Toggle Breakpoint |
| F5 | Start |
| F5 | Continue |
| Ctrl+F5 | Start (without debugging) |
| F6 | Pause |
| F11 | Step Into |
Tasks
| Key | Command |
|---|---|
| Ctrl+Shift+B | Run Build Task |