Using "Go To" Shortcuts

You can use shortcuts in the Source Editor to jump to a particular line number or to go to a source file, declaration statement, or Javadoc documentation based on the location of the insertion point.

To jump to a line:

  1. Press Ctrl-G.

    The Go to Line dialog box is displayed.

  2. Type a particular line number or select one from the line numbers you have previously entered.

    If the dialog box does not close when you click the Goto button, the specified line number is not in the current file. Specify a smaller line number.

To go to the source for the identifier the insertion point is on:

To jump to the declaration for the method or field the insertion point is on:

To display Javadoc documentation for the entity the insertion point is on:

Tip If the code completion box is displayed when you type Alt-O, Alt-G, or Alt-F1, the resulting action is based on the selection in the completion box.

If a package is selected in the completion box, Alt-O opens the package in the Explorer and Alt-F1 opens the Javadoc for the whole package.

See also
Opening a Java File With "Go To Class"

Mounting a Filesystem
Mounting the Java 2 SDK
Updating the Parser Database
Searching Through Javadoc-Generated Documentation

Using Quick Browse for Java Elements
Using the Jump List
Using Bookmarks

Legal Notices