To navigate to the declarations of a base class or overridden
method
- Place the caret at the desired code item in the editor.
- Choose ReSharper | Navigate | Base Symbols on the main menu, or press Ctrl+U.
- If a selected type has more than one base type, select an item from the drop-down list.
To display the list of found base types in the Find Results window, press + on the numeric keypad.
Tip
The source file opens and the caret positions at the base type method/declaration of the selected method/type. If the file with this item is closed, it opens in a new tab. For library items, the corresponding entity displays in the Object Browser window.
To navigate to an overridden method of the base type
- Position the caret within the code of the selected overriding method:
- Press Ctrl+U:
- The caret will be repositioned as follows:
To navigate to the base type declaration when there is only one base type
- Position the caret at the declaration of the given derived type:
- Press Ctrl+U, the list of found base type will be displayed, press Enter:
- The caret will be repositioned as follows:
To navigate to the base type declaration when there are two or more base types
- Position the caret at the declaration of the given derived type:
- Press Ctrl+U, the list of found base types will be displayed, choose one of the items and press Enter:
- The caret will be repositioned as follows:
To display the list when there is only one base type
- On the main menu, choose ReSharper | Options.
- In the ReSharper Options dialog box, select Environment | Search & Navigation.
- In the Search & Navigation section, select Go to Base/Inheritor: if there is only one result, navigate without displaying the list.
- Click OK to save the settings and close the ReSharper Options dialog box.
