Skip to content

↑↓ moveEnter openEsc close

Go to the definition in Visual Studio

Visual Studio 2022 (17.14) · 55 shortcuts · checked Nov 2026 · Source: Microsoft docs

In Microsoft Visual Studio, press F12.

WindowsF12

What else uses F12?

More Visual Studio shortcuts: navigation

ActionKeys
Go to anything (files, types, members)CtrlTorCtrl,
Search Visual Studio commands and settingsCtrlQ
Go to a lineCtrlG
Peek the definitionAltF12
Go to the implementationCtrlF12
Find all referencesShiftF12
Navigate backwardCtrl-
Navigate forwardCtrlShift-
Switch between open documentsCtrlTab
Close the documentCtrlF4

All 13 in navigation · All 55 Visual Studio shortcuts