# Visual Studio keyboard shortcuts (Windows)

> The most used Visual Studio shortcuts on Windows: Quick Actions and refactorings (Ctrl+.), Go to All (Ctrl+T), Go to definition (F12), Build solution (Ctrl+Shift+B), Start debugging (F5). This page lists all 48, from the official documentation.

- Source: [Microsoft · learn.microsoft.com](https://learn.microsoft.com/en-us/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio), retrieved November 19, 2026 (2026-11-19)
- Page: https://www.modandkey.com/visualstudio-keyboard-shortcuts
- Also: [de](https://www.modandkey.com/md/de/visualstudio-tastenkombinationen.md), [es](https://www.modandkey.com/md/es/atajos-de-teclado-visualstudio.md), [fr](https://www.modandkey.com/md/fr/raccourcis-clavier-visualstudio.md), [it](https://www.modandkey.com/md/it/scorciatoie-tastiera-visualstudio.md)
- Unofficial reference. Not affiliated with Microsoft.

## File

| Command | Shortcut |
|---|---|
| New file | Ctrl+N |
| New project | Ctrl+Shift+N |
| Open file | Ctrl+O |
| Save | Ctrl+S |
| Save all | Ctrl+Shift+S |
| Add new item | Ctrl+Shift+A |

## Edit

| Command | Shortcut |
|---|---|
| Undo | Ctrl+Z |
| Redo | Ctrl+Y |
| Cut line | Ctrl+L |
| Delete line | Ctrl+Shift+L |
| Move line(s) up | Alt+↑ |
| Move line(s) down | Alt+↓ |
| New line above | Ctrl+Enter |

## IntelliSense & code

| Command | Shortcut |
|---|---|
| Toggle line comment | Ctrl+/ |
| Complete word (IntelliSense) | Ctrl+Space |
| Parameter info | Ctrl+Shift+Space |
| Quick Actions and refactorings | Ctrl+. |
| Add caret at next match | Alt+Shift+. |
| Add carets at all matches | Alt+Shift+; |
| Expand selection | Alt+Shift+= |

## Search & navigation

| Command | Shortcut |
|---|---|
| Find | Ctrl+F |
| Replace | Ctrl+H |
| Find in files | Ctrl+Shift+F |
| Go to All | Ctrl+T |
| Go to line | Ctrl+G |
| Go to definition | F12 |
| Peek definition | Alt+F12 |
| Find all references | Shift+F12 |
| Navigate backward | Ctrl+- |
| Navigate forward | Ctrl+Shift+- |
| Search (Quick Launch) | Ctrl+Q |

## Build & debug

| Command | Shortcut |
|---|---|
| Build solution | Ctrl+Shift+B |
| Start debugging | F5 |
| Start without debugging | Ctrl+F5 |
| Stop debugging | Shift+F5 |
| Toggle breakpoint | F9 |
| Step over | F10 |
| Step into | F11 |
| Step out | Shift+F11 |
| Run to cursor | Ctrl+F10 |

## Windows & view

| Command | Shortcut |
|---|---|
| Solution Explorer | Ctrl+Alt+L |
| Properties window | F4 |
| Output window | Ctrl+Alt+O |
| Close document | Ctrl+F4 |
| Switch documents | Ctrl+Tab |
| Full screen | Alt+Shift+Enter |
| Zoom in | Ctrl+Shift+. |
| Zoom out | Ctrl+Shift+, |
