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

Navigate To: Function Exits

Last modified: 11 February 2024

This command is an easy way to navigate between all exit points of a function. You can find this command if you invoke Navigate To on the name of a function, getter or setter of a property, the name of constructor, return, throw, and yield statements as well as on the closing bracket of a function with void return type

If there is only one exit point, ReSharper navigates directly there. If there are several exit points, each of them is highlighted with blue.

Navigating to function exits

The highlights are also duplicated with blue markers on the marker bar on the right. Checking these markers may be helpful if not all highlighted items are visible in the current frame.

To navigate between the highlighted items, choose ReSharper | Find | Go to Next/Previous Highlight from the menu or press CtrlAltPg Dn/CtrlAltPg Up. Alternatively, click the status indicator (that should be displaying ThemedIcon.ErrorStripeFindNext.Screen.(Gray).png) in the right top corner of the editor to jump between the highlights.

When you finish examining the highlights, press Esc to remove them.

Note that by default ReSharper automatically highlights all function exits when you place the caret at one of them.

ReSharper highlights function exits

This feature is supported in the following languages and technologies:

The instructions and examples given here address the use of the feature in C#. For more information about other languages, refer to corresponding topics in the Languages and frameworks section.