ReSharper 2021.3 Help

Navigate To Function Exits

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 in the menu or press Control+Alt+PageDown/Control+Alt+PageUp. Alternatively, click the status indicator (that should be displaying Themed icon error stripe find next screen gray) 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 set the caret at one of them.

ReSharper highlights function exits

This feature is supported in the following languages and technologies:

Language: C#

Language: VB.NET

Language: C++

Language: HTML

Language: ASP.NET

Language: Razor

Language: JavaScript

Language: TypeScript

Language: CSS

Language: XML

Language: XAML

Language: Resx

Language: Build Scripts

Language: Protobuf

Language: JSON

Feature is available in C#

Feature is available in Visual Basic .NET

Feature is not available in C++

Feature is not available in HTML

Feature is not available in ASP.NET

Feature is not available in Razor

Feature is available in JavaScript

Feature is available in TypeScript

Feature is not available in CSS

Feature is not available in XML

Feature is not available in XAML

Feature is not available in Resource files

Feature is not available in build script files

Feature is not available in Protobuf

Feature is not available in JSON

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by language section.

Last modified: 07 April 2022