Share via


Navigating to a Definition

You can use Class Outline to quickly move the insertion point to a specific definition in your source file. If the definition resides in another .java file (such as the definition of an inherited method), and if that source file is available on your computer, then the file is opened and the insertion point is moved to the definition. If the source file is not available, then the is opened.

To navigate to a definition

  1. In Class Outline, right-click the item whose definition you want to navigate to.

  2. On the shortcut menu, click Go to definition.

-or-

  • Double-click the item in Class Outline.

Note   When you use the Text editor to move the insertion point in the source file, Class Outline does not indicate which definition has been navigated to. To synchronize Class Outline with the source file, right-click the declaration in the Text editor and click Sync Class Outline on the shortcut menu.