Other Java shortcuts
Besides Java code completion, there are few other shortcuts that are available only for Java files:
- ALT+o - open the source file that the insertion point is on (or immediately before or after). For this command to work, the source file must be in a directory mounted in Filesystems, and the parser database must be updated for that source. See "Adding your own classes to the parser database" above.
- ALT+u then g - prefix the current identifier with
get
.- ALT+u then s - prefix the current identifier with
set
.- ALT+g - go to the variable declaration for the identifier that the insertion point is on (or immediately before or after). As with Alt+o, the source file must be in a directory mounted in Filesystems, and the parser database must be updated for that source for this shortcut to work.
- CTRL+SHIFT+t - comment out the selected lines.
- CTRL+SHIFT+d - remove comment marks from the selected lines.
- CTRL+u - delete text in the following cycle (when using the shortcut successive times): first the text preceeding the insertion point on the same line, then the indentation on the line, then the line break, then the text on the previous line, and so on.
- ALT+F1 - open the web browser on the Javadoc file pertaining to the item that the insertion point is on. As with ALT+o and ALT+g, the source file must be in a directory mounted in Filesystems, and the parser database must be updated for that source for this shortcut to work. In addition, the Javadoc documentation for that source must be mounted under the Javadoc tab in the Explorer.
When the insertion point is positioned after a brace, bracket, or parenthesis, you can also press CTRL+b to move to the matching bracket. If you press CTRL+SHIFT+b, the text within the braces is selected.
Contents | Prev | Next | Index |