JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Quick Definition

Last modified: 11 February 2024

Use Quick Definition AltF12 to study declarations and implementations of types and members that are used in the current context without leaving the current editing position. It works for both your solution code and library symbols.

In contrast to Go to Declaration F12, which switches your context to the desired definition, Quick Definition opens a popup where you can study the definition:

JetBrains Rider: Quick Definition

From the Quick Definition popup, you can study the symbol further:

  • Click and choose Edit Source or press F4 to open the definition in a new editor tab and close the popup.

  • Click and choose Open in Find Tool Window Open in Find Tool Window to display all definitions of the symbol in the Find window. This could be helpful for interfaces and partial classes.

  • Press Esc to close the popup and return the caret where it was before.

If you use Quick Definition on a symbol with multiple definitions — a partial class, for example — you will see the number of definitions on the toolbar. You can then either use the toolbar selector to choose a definition to display, or use the arrow buttons on the toolbar or press 0/0 to iterate through definitions:

JetBrains Rider: Quick Definition with multiple results