Upsource

Navigating within and from a file

Either a Side-by-side diff view or a file view allows you to select various symbols in code and examine the code base in depth by taking the following actions:

Display documentation for an element

Click on the element to show a documentation for it:

Go to declaration of an element

  1. Click on the element.
  2. Choose Go to declaration from the pop-up window. You’ll be taken to a declaration of that element.

Find usages of an element

  1. Click on the element.
  2. Choose Find usages from the pop-up window. All usages of that element will be listed in a separate tool window:

find_usages

You can navigate to each listing simply by clicking on it.

View hierarchy of an element

  1. Click on the element.
  2. Choose View hierarchy from the pop-up window. All ancestors and inheritors of that element will be listed in a separate tool window:

disp_hierarchy

You can navigate to each listing simply by clicking on it.

Highlight usages of an element

  1. Click on the element.
  2. Choose Highlight usages in file from the pop-up window. All occurrences of that element in the file will be highlighted:

highlight_elements

View usages diff

Note: This option is available in a Side-by-side diff view only.

  1. Click on the element.
  2. 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:

usages_diff