Upsource 2020.1 Help

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

  • Click on the element to show a documentation for it:

    display_doc.png

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 usages diff

  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

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.

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:

    display_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

Last modified: 02 April 2021