Jump to: General Shortcuts, Editing Shortcuts, Navigation Shortcuts, Search and Replace, MutiCursor and Selection, Rich Language Editing, Editor Management, File Management, Display, Debug, Integrated Terminal
Ctrl+Shift+P/F1 | Show Command Palette |
Ctrl+P | Quick Open |
Ctrl+Shift+N | New window/instance |
Ctrl+Shift+W | Close window/instance |
Ctrl+X | Cut line (empty selection) |
Ctrl+C | Copy line (empty selection) |
Alt+Up Arrow/Down Arrow | Move line up/down |
Shift+Alt+Down Arrow/Up Arrow | 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 | Go to beginning of line |
End | Go to End of line |
Ctrl+Home | Go to beginning of file |
Ctrl+End | Go to End of file |
Ctrl+Up Arrow/Down Arrow | Scroll line up/down |
Alt+PgUp/PgDn | Scroll page up/down |
Ctrl+Shift+[ | Fold (collapse) region |
Ctrl+Shift+] | Unfold (uncollapse) region |
Ctrl+K, then Ctrl+[ | Fold (collapse) all subregions |
Ctrl+K, then Ctrl+] | Unfold (uncollapse) all subregions |
Ctrl+K, then Ctrl+0 | Fold (collapse) all regions |
Ctrl+K, then Ctrl+J | Unfold (uncollapse) all regions |
Ctrl+K, then Ctrl+C | Add line comment |
Ctrl+K, then Ctrl+U | Remove line comment |
Ctrl+/ | Toggle line comment |
Shift+Alt+A | Toggle block comment |
Alt+Z | Toggle word wrap |
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 or warning |
Shift+F8 | Go to previous error or warning |
Ctrl+Shift+Tab | Navigate editor group history |
Alt+Left Arrow/Right Arrow | Go back / forward |
Ctrl+M | Toggle Tab moves focus |
Visual Studio 2019 Keyboard Shortcuts Cheat Sheet
You can navigate in Visual Studio more easily by using the shortcuts in this article. These shortcuts include keyboard and mouse shortcuts as well as text you can enter to help accomplish a task more easily. For a complete list of command shortcuts, see Default keyboard shortcuts.
- A visual cheat-sheet for the 124 keyboard shortcuts found in Microsoft's Visual Studio Code. Original Reference Report Issue.
- This page lists the default command shortcuts for the General profile, which you might have chosen when you installed Visual Studio. No matter which profile you chose, you can identify the shortcut for a command by opening the Options dialog box, expanding the Environment node, and then choosing Keyboard.
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, then Ctrl+D | Move last selection to next Find match |
Alt+C/R/W | Toggle Case-sensitive/Regex/Whole word |
Alt+Click | Insert cursor |
Ctrl+Alt+Up Arrow/Down Arrow | Insert cursor above / below |
Ctrl+U | Undo last cursor operation |
Shift+Alt+I | Insert cursor at end of each line selected |
Ctrl+I | Select current line |
Ctrl+Shift+L | Select all occurrences of current selection |
Ctrl+F2 | Select all occurrences of current word |
Shift+Alt+Right Arrow | Expand selection |
Shift+Alt+Left Arrow | Shrink selection |
Shift+Alt +Drag | Column (box) selection |
Ctrl+Shift+Alt+Arrow Keys | Column (box) selection |
Ctrl+Shift+Alt+PgUp /PgDn | Column (box) selection page up/down |
122 Shortcuts for Visual Studio Code Windows Jump to: General Shortcuts, Editing Shortcuts, Navigation Shortcuts, Search and Replace, MutiCursor and Selection, Rich Language Editing, Editor Management, File Management, Display, Debug, Integrated Terminal. ¹The corresponding macOS shortcut is listed under the macOS-Specific Shortcuts section at the end of the cheat sheet. Looking for More Ways to Make the Most of VS Code? The keyboard shortcuts here will have you well on your way to becoming a Visual Studio Code power user.
Ctrl+Spacebar | Trigger suggestion |
Ctrl+Shift+Spacebar | Trigger parameter hints |
Tab | Emmet expand abbreviation |
Shift+Alt+F | Format document |
Ctrl+K then Ctrl+F | Format selection |
F12 | Go to Definition |
Alt+F12 | Peek Definition |
Ctrl+K, then F12 | Open Definition to the side |
Ctrl+. | Quick Fix |
Shift+F12 | Show References |
F2 | Rename Symbol |
Ctrl+Shift+./, | Replace with next/previous value |
Ctrl+K, then Ctrl+X | Trim trailing whitespace |
Ctrl+K, then M | Change file language |
Ctrl+F4, then Ctrl+W | Close editor |
Ctrl+K, then F | Close folder |
Ctrl+ | Split editor |
Ctrl+1/2/3 | Focus into 1st, 2nd or 3rd editor group |
Ctrl+K, then Ctrl+Left Arrow/Right Arrow | Focus into previous/next editor group |
Ctrl+Shift+PgUp/PgDn | Move editor left/right |
Ctrl+K, then Left Arrow/Right Arrow | Move active editor group |
Ctrl+N | New File |
Ctrl+O | Open File |
Ctrl+S | Save |
Ctrl+Shift+S | Save As |
Ctrl+K, then S | Save All |
Ctrl+F4 | Close |
Ctrl+K, then Ctrl+W | Close All |
Ctrl+Shift+T | Reopen closed editor |
Ctrl+K, then Enter | Keep Open |
Ctrl+Tab | Open next |
Ctrl+Shift+Tab | Open previous |
Ctrl+K, then P | Copy Path of active file |
Ctrl+K, then R | Reveal active file in Explorer |
Ctrl+K, then O | Show active file in new window/instance |

F11 | Toggle full screen |
Shift+Alt+1 | Toggle editor layout |
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 Git |
Ctrl+Shift+D | Show Debug |
Ctrl+Shift+X | Show Extensions |
Ctrl+Shift+H | Replace in files |
Ctrl+Shift+J | Toggle Search details |
Ctrl+Shift+C | Open new command prompt/terminal |
Ctrl+Shift+U | Show Output panel |
Ctrl+Shift+V | Toggle Markdown preview |
Ctrl+K, then V | Open Markdown preview to the side |
F9 | Toggle breakpoint |
F5 | Start/Continue |
Shift+F5 | Stop |
F11/Shift+F11 | Step into/out |
F10 | Step over |
Ctrl+KthenCtrl+I | Show hover |
Ctrl+` | Show integrated terminal |
Ctrl+Shift+` | Create new terminal |
Ctrl+Shift+C | Copy selection |
Ctrl+Shift+V | Paste into active terminal |
Ctrl+Up Arrow/Down Arrow | Scroll up/down |
Shift+PgUp/PgDn | Scroll page up/down |
Ctrl+Home/End | Scroll to top/bottom |
Created by rank17 on 6/21/2017. Last updated by max on 12/23/2020
Visual Studio Shortcut Keys Pdf
0 Comments for 'VSCode '
Visual Studio Format Code Shortcut
Visual Studio 2017 has ton of keyboard shortcuts. It is overwhelmingly large. But, we very frequently use small percentage of them on a daily basis.
Visual Studio 2017 Shortcuts Cheat Sheet
Being familiar with important keyboard shortcuts makes you a ninja programmer and added bonus improved productivity levels. Programming world loves keyboard so much. GUI is for kids.
Visual Studio 2019 Keyboard Shortcuts Cheat Sheet

You can also download them hereVisual Studio 2017 Key board shortcuts
| VISUAL STUDIO 2017 Key board Shortcuts | |
|---|---|
| Build | F6, CTRL + SHIFT + B |
| Rebuild | ALT + B,R |
| Navigate To Any Code Artifact | CTRL + , |
| Navigate Backward Forward | CTRL + - |
| Find All References | SHIFT + F12 |
| Go To Declaration | CTRL + F12 |
| Go To Definition | F12 |
| Peek Definition | ALT + F12 |
| Find/Replace in Files | CTRL + SHIFT + F |
| Quick Find | CTRL + F |
| Start Without Debugging | CTRL + F5 |
| Stop Debugging | SHIFT + F5 |
| Start Debugging | F5 |
| Attach To Process | CTRL + SHIFT + P |
| Properties | ALT + ENTER |
| Delete All Break Points | CTRL + SHIFT +F9 |
| Run To Cursor | CTRL + F10 |
| Dock Windows In Studio | ALT + - |
| Breakpoint Window | CTRL + ALT + B |
| Call Stack Window | CTRL + ALT + C |
| Immediate Window | CTRL + SHIFT + I |
| Local Window | CTRL + ALT + V, L |
| Error Window | CTRL + , E OR CTRL + W,E |
| Quick Window | CTRL + ALT + Q |
| Close Tool Window | SHIFT + ESC |
| Cycle through Open Tool Windows | ALT + F6 |
| Focus to Document Window | ESC |
| Collapse Definition | CTRL + M, CTRL + O |
| Collapse Region | CTRL + M, CTRL + S |
| Expand Region | CTRL + X, CTRL + E |
| Expand Definition | CTRL + M, CTRL + X |
| Cycle Clipboard | CTRL + SHIFT + V |
| Format Document | CTRL + K, CTRL + D |
| Format Selection | CTRL + K, CTRL +F |
| Show available quick actions(Change signature,Parameters,Methods) | CTRL + . |
| Make Lower Case | CTRL + SHIFT + U |
| Make Uppercase | CTRL + U |
| Replace | CTRL + SHIFT + H |
| Select Word | CTRL + SHIFT + RIGHT ARROW/LEFT ARROW |
| Code completion | Ctrl + SPACE |
| Move Code up/down | ALT + DOWN ARROW OR ALT + UP / UP ARROW |
| Rename Code | CTRL + R, R (Resharper) or F2 |
| Sync active file with Solution Explorer | CTRL + [, S |
| Open File | CTRL + O |
| Run All Tests | CTRL + R, CTRL + A |
| Run a Test | CTRL + R, CTRL + T |
| Resharper Refactor Menu | CTRL + SHIFT + R |
| - Move To New File | CTRL + R, O |
| - Rename | CRT + R, R |
| Visual Studio Main Menu Activation | ALT + |
| Send code snippet to C# interactive Window | CTRL + E, E |
