Navigating within and from a file
Different views allow you to select various symbols in code and examine the code base in depth by taking the actions described below.
Actions available in all three views:
Actions available in a Side-by-side diff view and a File view:
- Display documentation for an element
- Find usages of an element
- View usages diff
- Go to declaration of an element
- View hierarchy of an element
- Highlight usages of an element
Display documentation for an element
Click on the element to show a documentation for it:
Find usages of an element
Click on the element.
Choose Find usages from the pop-up window. All usages of that element will be listed in a separate tool window: You can navigate to each listing simply by clicking on it.
View usages diff
Click on the element.
Choose View usages diff from the pop-up window. All usages of that element in the file will be listed with an indication of which of them were added between the two revisions, which were removed and which weren't changed:
Go to declaration of an element
Click on the element.
Choose Go to declaration from the pop-up window. You'll be taken to a declaration of that element.
View hierarchy of an element
Click on the element.
Choose View hierarchy from the pop-up window. All ancestors and inheritors of that element will be listed in a separate tool window: You can navigate to each listing simply by clicking on it.
Highlight usages of an element
Click on the element.
Choose Highlight usages in file from the pop-up window. All occurrences of that element in the file will be highlighted: