Using "Go To" Shortcuts

See Also

You can use shortcuts in the Source Editor to jump to a particular line number in any type of file. For Java files, you can also 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 Java source for the identifier the insertion point is on:

To jump to the declaration for the Java 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 at the time 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 Filesystems window and Alt-F1 opens the Javadoc for the whole package.

See Also
Opening a Java File With "Go To Class"
Mounting the Java 2 SDK
Code Completion Database
Searching Javadoc Documentation
Using the Jump List
Code Navigation Tips

Legal Notices