The hotkeys can be found in http://aka.ms/vscodekeybindings/ for all platforms.
Note: The following keys are rendered assuming a standard US keyboard layout. If you use a different keyboard layout, please read below (https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-layouts). You can view the currently active keyboard shortcuts in VSCode in the Command Palette
(View
| Command Palette
) or in the Keyboard Shortcuts
editor (File
| Preferences
| Keyboard Shortcuts
).
Key | Command | Command ID |
---|---|---|
Ctrl+X | Cut line (empty selection) |
|
Ctrl+C | Copy line (empty selection) |
|
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+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+I | 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 |
|
F3 | Find Next |
|
Shift+F3 | 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 |
|
unassigned | Toggle Render Whitespace |
|
Alt+Z | Toggle Word Wrap |
|
Key | Command | Command ID |
---|---|---|
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 | Show References |
|
F2 | Rename Symbol |
|
Ctrl+Shift+. | Replace with Next Value |
|
Ctrl+Shift+, | Replace with Previous Value |
|
Shift+Alt+Right | Expand AST Select |
|
Shift+Alt+Left | Shrink AST Select |
|
Ctrl+K Ctrl+X | Trim Trailing Whitespace |
|
Ctrl+K M | Change Language Mode |
|
Key | Command | Command ID |
---|---|---|
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 | Show All Commands |
|
Ctrl+Shift+Tab | Navigate Editor Group History |
|
Alt+Left | Go Back |
|
Alt+Right | Go Forward |
|
Key | Command | Command ID |
---|---|---|
Ctrl+Shift+N | New Window |
|
Ctrl+Shift+W | Close Window |
|
Ctrl+F4 | Close Editor |
|
Ctrl+K F | Close Folder |
|
unassigned | Cycle Between Editor Groups |
|
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+K Ctrl+Left | Focus into Editor Group on the Left |
|
Ctrl+K Ctrl+Right | Focus into Editor Group on the Right |
|
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 |
|
Key | Command | Command ID |
---|---|---|
Ctrl+N | New File |
|
Ctrl+O | Open File... |
|
Ctrl+S | Save |
|
Ctrl+K S | Save All |
|
Ctrl+Shift+S | Save As... |
|
Ctrl+F4 | Close |
|
unassigned | Close Others |
|
Ctrl+K W | Close Group |
|
unassigned | Close Other Groups |
|
unassigned | Close Group to Left |
|
unassigned | Close Group to Right |
|
Ctrl+K Ctrl+W | Close All |
|
Ctrl+Shift+T | Reopen Closed Editor |
|
Ctrl+K Enter | Keep Open |
|
Ctrl+Tab | Open Next |
|
Ctrl+Shift+Tab | Open Previous |
|
unassigned | Copy Path of Active File |
|
unassigned | Reveal Active File in Windows |
|
Ctrl+K O | Show Opened File in New Window |
|
unassigned | Compare Opened File With |
|
Key | Command | Command ID |
---|---|---|
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 Debug |
|
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 |
|
Key | Command | Command ID |
---|---|---|
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 |
|
Alt+Down | Show Next Search Term |
|
Alt+Up | Show Previous Search Term |
|
Key | Command | Command ID |
---|---|---|
Ctrl+, | Open User Settings |
|
unassigned | Open Workspace Settings |
|
Ctrl+K Ctrl+S | Open Keyboard Shortcuts |
|
unassigned | Open User Snippets |
|
Ctrl+K Ctrl+T | Select Color Theme |
|
unassigned | Configure Display Language |
|
Key | Command | Command ID |
---|---|---|
F9 | Toggle Breakpoint |
|
F5 | Start |
|
F5 | Continue |
|
Ctrl+F5 | Start (without debugging) |
|
F6 | Pause |
|
F11 | Step Into |
|
Shift+F11 | Step Out |
|
F10 | Step Over |
|
Shift+F5 | Stop |
|
Ctrl+K Ctrl+I | Show Hover |
|
Key | Command | Command ID |
---|---|---|
Ctrl+Shift+B | Run Build Task |
|
unassigned | Run Test Task |
|
Key | Command | Command ID |
---|---|---|
unassigned | Install Extension |
|
unassigned | Show Installed Extensions |
|
unassigned | Show Outdated Extensions |
|
unassigned | Show Recommended Extensions |
|
unassigned | Show Popular Extensions |
|
unassigned | Update All Extensions |
|