There are keyboard shortcuts available to activate the
following Source Editor operations:
Keys |
Action |
Left arrow, Right arrow |
Moves the insertion point one character to the left or right. |
Alt-U, 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. |
Ctrl-[ |
Moves the insertion point to the highlighted matching bracket. |
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. |
Ctrl-G |
Opens Go to Line dialog box. |
Alt-Shift-T |
Moves the insertion point to the top of the window. |
Alt-Shift-M |
Moves the insertion point to the middle of the window. |
Alt-Shift-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. |
Keys |
Action |
Ctrl-A |
Selects all text in the file. |
Shift-right arrow |
Selects the character to the right of the insertion point. |
Shift-left arrow |
Selects the character 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. |
Ctrl-Shift-[ |
Selects the block between a pair of brackets. This shortcut only works
when the insertion point is immediately after either the opening or closing bracket. |
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. |
Ctrl-X |
(Cut) Deletes the current selection and places it on the
clipboard. |
Shift-Delete |
(Cut) Deletes the current selection and places it on the
clipboard. |
Ctrl-C |
(Copy) Copies the current selection to the clipboard. |
Ctrl-Insert |
(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. |
Backspace |
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. (The insertion point must
be on a whitespace before or after a word.)
|
Ctrl-L |
Copies the word following the insertion
point and pastes it at the insertion point. (The insertion point must
be on a whitespace before or after a word.) |
Keys |
Action |
Ctrl-Spacebar |
Opens the Java code completion dialog box. |
Ctrl-\ |
Opens the Java code completion dialog box. |
Shift-Enter |
Enters the text that is selected in the code completion box into your file. |
Alt-Shift-I |
Adds an import statement to the import section of the code when
cursor is over the class name to be imported. |
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 the method or variable declaration for method or variable
the insertion point is on. |
Ctrl-M |
Selects the next parameter. |
Ctrl-Shift-T |
Comments out the current or selected lines. |
Ctrl-Shift-D |
Removes comment from the current or selected lines. |
Ctrl-Shift-[ |
Selects block between brackets when insertion point is immediately
in front of the open bracket. |
Alt-K |
Goes to the previous entry in jump list. |
Alt-L |
Goes to the next entry in jump list. |
Alt-Shift-K |
Goes to the previous entry in jump list not in the same file. |
Alt-Shift-L |
Goes to the next entry in jump list not in the same file. |
Ctrl-Shift-F |
Reformats code. |
Shift-F10 |
Opens editor's contextual menu. |
Ctrl-J, D |
A macro that selects the identifier under the caret. Then inserts
debugging code on the previous line to print the value of that identifier |
Shift-Spacebar |
Adds a space without checking for abbreviations to expand. |