GENERAL | |
---|---|
Ctrl+Shift+P or F1 | Show Command Palette |
Ctrl+P | Quick Open file |
Ctrl+Shift+N | New window |
Ctrl+Shift+W | Close window |
Ctrl+, | User Settings |
Ctrl+K Ctrl+S | Keyboard Shortcuts |
Visual Studio Code for Windows
Visual Studio Code is a source-code editor developed by Microsoft for Windows, Linux and macOS. It includes support for debugging, built‑in Git version control, syntax highlighting, intelligent code completion, snippets and code refactoring.
BASIC EDITING | |
---|---|
Ctrl+X | Cut line |
Ctrl+C | Copy line |
Alt+Up / Alt+Down | Move line |
Shift+Alt+Up / Shift+Alt+Down | Copy line |
Ctrl+Shift+K | Delete line |
Ctrl+Enter | Insert line below |
Ctrl+Shift+Enter | Insert line above |
Ctrl+Shift+\ | Jump to matching bracket |
Ctrl+] / Ctrl+[ | Indent / outdent |
Alt+Z | Toggle word wrap |
Ctrl+/ | Toggle line comment |
Shift+Alt+A | Toggle block comment |
Ctrl+K Ctrl+C | Add line comment |
Ctrl+K Ctrl+U | Remove line comment |
Ctrl+Shift+[ | Fold region |
Ctrl+Shift+] | Unfold region |
Ctrl+K Ctrl+[ | Fold all subregions |
Ctrl+K Ctrl+] | Unfold all subregions |
Ctrl+K Ctrl+0 | Fold all |
Ctrl+K Ctrl+J | Unfold all |
NAVIGATION | |
---|---|
Ctrl+G | Go to line |
Ctrl+Shift+O | Go to symbol |
Ctrl+T | Show all symbols |
Ctrl+Tab | Next editor |
Ctrl+Shift+Tab | Previous editor |
Alt+Left / Alt+Right | Back / Forward |
Ctrl+Shift+M | Show Problems panel |
F8 | Next error or warning |
Shift+F8 | Prev error or warning |
Ctrl+M | Toggle Tab focus |
SEARCH AND REPLACE | |
---|---|
Ctrl+F | Find |
Ctrl+H | Replace |
F3 / Shift+F3 | Find next / previous |
Alt+Enter | Select all matches |
Ctrl+D | Add selection to next match |
Ctrl+K Ctrl+D | Move last selection to next match |
Ctrl+Shift+L | Select all occurrences |
Alt+C / Alt+R / Alt+W | Toggle case / regex / whole word |
MULTI-CURSOR | |
---|---|
Alt+Click | Insert cursor |
Ctrl+Alt+Up / Ctrl+Alt+Down | Insert cursor above/below |
Ctrl+U | Undo last cursor op |
Shift+Alt+I | Cursor at end of lines |
Ctrl+L | Select line |
Ctrl+F2 | Select all occurrences of word |
Shift+Alt+Right | Expand selection |
Shift+Alt+Left | Shrink selection |
Ctrl+Shift+Alt+Arrow | Column selection |
Ctrl+Shift+Alt+PgUp/PgDn | Column selection page up/down |
RICH LANG | |
---|---|
Ctrl+Space / Ctrl+I | Trigger suggestion |
Ctrl+Shift+Space | Parameter hints |
Shift+Alt+F | Format document |
Ctrl+K Ctrl+F | Format selection |
F12 | Go to Definition |
Alt+F12 | Peek Definition |
Shift+F12 | Show References |
F2 | Rename Symbol |
Ctrl+K Ctrl+X | Trim trailing whitespace |
Ctrl+K M | Change file language |
Ctrl+K F12 | Open Definition to the side |
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 / Ctrl+W | Close editor |
Ctrl+K Ctrl+W | Close All |
Ctrl+Shift+T | Reopen closed editor |
Ctrl+K Enter | Keep preview open |
Ctrl+K P | Copy active file path |
Ctrl+K R | Reveal active file |
Ctrl+K O | Open active file in new window |
DISPLAY | |
---|---|
F11 | Toggle full screen |
Shift+Alt+0 | Toggle editor layout |
Ctrl+= / Ctrl+- | Zoom in/out |
Ctrl+B | Toggle sidebar |
Ctrl+Shift+E | Show Explorer |
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 Markdown preview |
Ctrl+K V | Open Markdown preview to side |
Ctrl+K Z | Zen Mode |
DEBUG | |
---|---|
F5 | Start / Continue |
Shift+F5 | Stop |
F9 | Toggle breakpoint |
F10 | Step over |
F11 / Shift+F11 | Step into / out |
Ctrl+K Ctrl+I | Show hover |
INTEGRATED TERMINAL | |
---|---|
Ctrl+` | Toggle terminal |
Ctrl+Shift+` | New terminal |
Ctrl+Shift+C | Copy selection |
Ctrl+V | Paste selection |
Ctrl+Up / Ctrl+Down | Scroll line |
Shift+PgUp / Shift+PgDn | Scroll page |
Ctrl+Home / Ctrl+End | Scroll to top/bottom |