# Opening an editor for a selected element

You can select the name of a type, method, or field in the Java source editor or in the scrapbook and open an editor on the definition of the element.

1. In the Java editor, select the name of a type, method, or field. You can also just click into the name once.
2. Do one of the following:
   - From the menu bar, select Navigate > Open Declaration
   - From the editor's pop-up menu, select Open Declaration
   - Press F3

or

1. Hold down the Ctrl key.
2. In the Java editor, move the mouse over the name of a type, method, or field until the name becomes underlined.
3. Click the hyperlink once.

If there are multiple definitions of the same name, a dialog is shown, and you can select one definition that you want to open. An editor opens containing the selected element.

Java editor

Navigate menu
Views and editors