Editor Shortcuts

Shortcuts are available for the following operations:

Moving the Insertion Point

Keys Action
Left arrow,
Right arrow
Moves the insertion point one character to the left or right.
Alt-E Moves the insertion point to the end of the word.
Ctrl-right arrow Moves the insertion point one word to the right.
Ctrl-left arrow Moves the insertion point one word to the left.
Home Moves the insertion point to the beginning of the line.
End Moves the insertion point to the end of the line.
Up arrow Moves the insertion point one one line up.
Down arrow Moves the insertion point one one line down.
Shift-Alt-T Moves the insertion point to the top of the window.
Shift-Alt-M Moves the insertion point to the middle of the window.
Shift-Alt-B Moves the insertion point to the bottom of the window.
Ctrl-Home Moves the insertion point to the beginning of the document.
Ctrl-End Moves the insertion point to the end of the document.
PgUp Moves the insertion point one page up.
PgDn Moves the insertion point one page down.

Selecting Text

Keys Action
Ctrl-A Selects all text in the file.
Shift-right arrow Selects the word to the right of the insertion point.
Shift-left arrow Selects the word to the left of the insertion point.
Alt-J Selects the word the insertion point is on, else deselects any selected text.
Ctrl-Shift-right arrow Creates a text selection and extends it one word to the right.
Ctrl-Shift-left arrow Creates a text selection and extends it one word to the left.
Shift-Home Creates a text selection and extends it to the beginning of the line.
Shift-End Creates a text selection and extends it to the end of the line.
Shift-up arrow Creates a text selection and extends it to the previous line.
Shift-down arrow Creates a text selection and extends it to the next line.
Ctrl-Shift-Home Creates a text selection and extends it to the beginning of the document.
Ctrl-Shift-End Creates a text selection and extends it to the end of the document.
Shift-PgUp Creates a text selection and extends it one page up.
Shift-PgDn Creates a text selection and extends it one page down.

Scrolling Text

Keys Action
Alt-T Scrolls text to top of window.
Alt-M Scrolls text to middle of window.
Alt-B Scrolls text to bottom of window.
Ctrl-up arrow Scrolls the window up without moving the insertion point.
Ctrl-down arrow Scrolls the window down without moving the insertion point.

Modifying Text

Keys Action
INSERT Switches between insert text and overwrite text mode.
Alt-U, U Makes the selected characters or the character to the right of the insertion point uppercase.
Alt-U, L Makes the selected characters or the character to the right of the insertion point lowercase.
Alt-U, R Reverses the case of the selected characters or the character to the right of the insertion point.
Alt-U, F Reverses the case of the first character of the identifier the insertion point is on.
Alt-F Reformat the selected text, else reformat the entire file.

Cutting, Copying, Pasting, and Deleting Text

Keys Action
Ctrl-Z (Undo) Reverses (one at a time) a series of editor actions, except Save.
Ctrl-Y (Redo) Reverses (one at a time) a series of Undo commands.
Alt-J Selects the word the insertion point is on or deselects text.
Ctrl-X (Cut) Deletes the current selection and places it on the clipboard.
Ctrl-C (Copy) Copies the current selection to the clipboard.
Ctrl-V (Paste) Pastes the contents of the clipbard at the insert point.
Delete (Delete) Deletes the current selection.
Ctrl-E Deletes the current line.
Ctrl-H Deletes the character preceding the insertion point.
Ctrl-U Deletes text in the following sequence:
  • text preceding insertion point on same line
  • indentation on same line
  • line break
  • text on previous line
Ctrl-W Removes the current word or the word preceding the insertion point.
Ctrl-K Copies the word preceding the insertion point and pastes it at the insertion point.
Ctrl-L Copies the word following the insertion point and pastes it at the insertion point.

Searching for Text

Keys Action
Ctrl-F3 Searches for the word the insertion point is on and higlights all occurrences of that word.
F3 Moves the insertion point to the next found occurrence of the word.
Shift-F3 Moves the insertion point to the previous found occurrence of the word.
Alt-Shift-H Switches highlighting of words on or off.

Setting Tabs

Keys Action
Tab Shifts all text to right of insertion point to the right.
Ctrl-T Shifts text in line containing the insertion point to the right.
Ctrl-D Shifts text in line containing the insertion point to the left.

Modifying Code

Keys Action
Spacebar Opens the Java code completion dialog box.
Alt-U, G Appends the prefix get to the identifier.
Alt-U, S Appends the prefix set to the identifier.
Alt-U, I Appends the prefix is to the identifier.
Alt-G Goes to next method or variable declaration.
Ctrl-Shift-T Comments out the current or selected lines.
Ctrl-Shift-D Removes comment from the current or selected lines.
Ctrl-B Finds matching bracket.
Ctrl-Shift-B Selects block between brackets.
Alt-K Goes to previous entry in jump list.
Alt-L Goes to next entry in jump list.
Shift-Alt-K Goes to previous entry in jump list not in the same file.
Shift-Alt-L Goes to next entry in jump list not in the same file.

Opening Files

Keys Action
Alt-O Opens the source based on the current location of the insertion point. The source file must be in a directory mounted in Filesystems, and the parser database must be updated for that source.
Alt-F1 Opens the web browser on the Javadoc file pertaining to the item that the insertion point is on. The source file must be in a directory mounted in Filesystems, and the parser database must be updated for that source. Also, the Javadoc documentation for that source must be mounted under the Javadoc tab in the Explorer.

Using Bookmarks

Keys Action
Ctrl-F2 Sets or unsets a bookmark at current line.
F2 Goes to next bookmark.

Legal Notices