dotPeek Web Help

Navigate | Navigate To | Function Exits
Ctrl+Shift+GAlt+~ ,,X

The Function Exit(s) navigation command provides you an easy way to highlight all exit points of a function. You can find this command on the Navigate to context menu, if you place the caret at the name of a function, getter or setter of a property, the name of constructor, return and throw statements and press Ctrl+Shift+GAlt+~. ReSharper treats return and throw statements that lead to function termination as function exits.

If there are several exits, each of them will be highlighted. To navigate between highlighted function exits, use Next Item and Previous Item navigation commands.
Navigation_and_Search__Navigate_from_Here__function_exits_01
If a function has void return type, then the closing brace is highlighted as well.
Navigation_and_Search__Navigate_from_Here__function_exits_02

Tip

To navigate to the next highlighted exit point, choose Navigate | Next Item or press Ctrl+Alt+DownCtrl+Alt+PageDown.
To navigate to the previous highlighted exit point, choose Navigate | Previous Item or press Ctrl+Alt+UpCtrl+Alt+PageUp.

This feature is inspired by and borrowed from JetBrains ReSharper, a developer productivity tool for Microsoft Visual Studio.