Skip to the main content

Visual Studio keyboard shortcuts

Building, debugging, editing, and tool windows in Microsoft's full IDE.

84 shortcuts Windows checked September 14, 2026

Print all 84 shortcuts One sheet with every shortcut in this app, ready for the printer or a PDF.

This app has a Windows catalog in Shortivo. No other operating system is published for it yet.

Matching shortcuts
Action Keys Row actions
Format only the selection Text editor Windows CtrlKCtrlF Source
Go to a line number Text editor Windows CtrlG Source
Go to the declaration Text editor Windows CtrlF12 Source
Go to the definition Text editor Windows F12 Source
Go to the next result location Results list Windows F8 Source
Insert a code snippet Text editor Windows CtrlKCtrlX Source
Cut the whole line Text editor Windows CtrlL Source
Extend a column selection downward Text editor Windows ShiftAltDown arrow Source
Open a new line above Text editor Windows CtrlEnter Source
List the members of a type Text editor Windows CtrlJ Source
Search files, types and members Anywhere Windows CtrlP Source
Show parameter information Text editor Windows CtrlShiftSpace Source
Paste from the clipboard Anywhere Windows CtrlV Source
Peek at a definition inline Text editor Windows AltF12 Source
Redo the last undone change Anywhere Windows CtrlY Source
Replace text in the file Anywhere Windows CtrlH Source
Select everything Anywhere Windows CtrlA Source
Remove and sort using directives Text editor Windows CtrlRCtrlG Source
Collapse or expand all outlining Text editor Windows CtrlMCtrlL Source
Set or clear a bookmark Text editor Windows CtrlKCtrlK Source
Toggle line comments Text editor Windows Ctrl/ Source
Collapse or expand the current block Text editor Windows CtrlMCtrlM Source
Uncomment the selection Text editor Windows CtrlKCtrlU Source
Undo the last change Anywhere Windows CtrlZ Source
Delete to the end of the word Text editor Windows CtrlDelete Source
Delete to the start of the word Text editor Windows CtrlBackspace Source
Quit Visual Studio Anywhere Windows AltF4 Source
Create a new file Anywhere Windows CtrlN Source
Create a new project Anywhere Windows CtrlShiftN Source
Open a file Anywhere Windows CtrlO Source

About Visual Studio and its shortcuts

Visual Studio is the full Microsoft development environment, and its keyboard reflects a program with a very large surface: building, debugging, navigating a solution, refactoring and window management each have their own family of commands. The debugging commands are the ones that pay back fastest, since they are repeated dozens of times an hour.

Visual Studio ships several keyboard schemes and lets you switch between them, so the installed default is not universal. Installed workloads and extensions also add their own bindings, and Shortivo publishes the Windows list only.

Where the Visual Studio keys came from

Read from 1 documentation page published by the makers of Visual Studio. Report a key that is wrong

To see how one action is done in other apps as well as Visual Studio, browse the shortcuts by task. Shortcuts by task