Code Navigation: Quick Reference

This topic describes common tasks within the Source Editor for navigating within your code and browsing source and Javadoc documentation.

To perform this task Follow these steps
Go to the Java source for the identifier the insertion point is on.
  • Press Alt-O, or choose Navigate > Go to Source.
Go to a Java file, JSP file, or tag file via hyperlinks. Hold down the Ctrl key and, at the same time, move your mouse over and click one of:
  • Java identifier (package, class, method, variable).
  • JSP identifier (include directive, <jsp:include> element, <jsp:forward> element, or tag file reference).
Jump to the declaration for the Java method or field the insertion point is on.
  • Press Alt-G, or right-click and choose Go To > Declaration from the pop-up menu.
Go to a Java class.
  • Choose Navigate  > Go To Class or press Alt-Shift-O.
Display Javadoc documentation for the entity that the insertion point is on.
  • Press Alt-F1, or right-click and choose Show Javadoc from the contextual menu.

    The appropriate Javadoc library must be included in the Library manager.

Display Javadoc documentation for the method that corresponds to the method signature that you are using in your code.
  1. Place the insertion point between the closing parenthesis of the method call and the semicolon.
  2. Press Alt-F1, or right-click and choose Show Javadoc from the contextual menu.

    If the insertion point is elsewhere in the line when you press Alt-F1, the documentation for the method with no parameters is displayed.

Go to a specific method or field in the currently displayed Java class.
  • Double-click the method or field in the Navigator window.
Switch Source Editor tabs
  • Press Alt-Right or Alt-Left.
Jump back and forth among areas of code in which you have been working.
  • Use the Alt-K and Alt-L jump list keyboard shortcuts.
Bookmark a line of code.
  • Click anywhere in the line that you want to bookmark and press Ctrl-Shift-M.

    Press Ctrl-Shift-Period/Comma to cycle forward/backwards through your bookmarks.

    Press Ctrl-Shift-M on a bookmarked line to remove the bookmark.

To go to a specific line number.
  • Press Ctrl-G.
Select the Projects window node for the current file in the Source Editor.
  • Press Ctrl-Shift-1

Legal Notices