Navigate To Function Exits
Ctrl+Shift+G |
Function Exit(s)
This command provides you an easy way to navigate to 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
and
throw
statements.
dotPeek treats
return
and
throw
statements as well as the closing bracket for functions with
void
return type as function exits.
If there is only one exit point, dotPeek navigates directly there. If there are several exit points, each of them is highlighted with blue.
The highlights are also duplicated with markers on the
marker bar
on the right.
Checking these markers may be helpful if not all highlights are visible on the current screen.
To navigate between the highlighted items, choose
in the menu or press
Ctrl+Alt+PageDown /
Ctrl+Alt+PageUp.
Alternatively, click the
status indicator
(that should be displaying
) in the right top corner of the code viewer
to jump between the highlights.
When you finish examining the highlights, press
Esc
to remove them.
Note that by default, dotPeek automatically highlights all context exits when you set the caret at one of them.
This feature is inspired by and borrowed from JetBrains ReSharper, a developer productivity tool for Microsoft Visual Studio.