The following tables list the shortcuts that you can use to control
the Java™ editor
through the keyboard.
Keyboard shortcuts for the Java editor
Key |
Ctrl+Key |
Alt+Key |
Alt+Shift+Key |
Period (.) |
Next |
|
|
Comma (,) |
Previous |
|
|
Forward Slash (/) |
Comment |
Content assist (simplified Chinese) |
|
Backslash (\) |
Uncomment |
|
|
Question Mark (?) |
|
Parameter hints (simplified Chinese) |
|
Left Arrow |
|
|
Expand selection to previous element |
Right Arrow |
|
|
Expand selection to next element |
Up Arrow |
|
|
Expand selection to enclosing element |
Down Arrow |
|
|
Expand selection to last element |
1 |
Quick fix |
|
|
Key |
Key by itself |
Ctrl+Key |
Shift+Key |
Ctrl+Shift+Key |
E |
|
Next problem |
|
Previous problem |
F |
|
|
|
Format |
G |
|
Search for declarations in workspace |
|
Search for references in workspace |
H |
|
|
|
Open type in hierarchy |
M |
|
|
|
Add import |
O |
|
|
|
Organize imports |
Space |
|
Content assist |
|
Parameter hints |
Tab |
Shift right |
|
Shift left |
|
The following table lists the shortcuts that you can use to control
the Java development tools through the keyboard.
Key |
Key by itself |
Shift+Key |
Ctrl+Shift+Key |
F2 |
Show Javadoc HTML documentation |
Open external Javadoc HTML documentation |
|
F3 |
Open on selection |
|
|
F4 |
Open type hierarchy |
|
|
T |
|
|
Open type |
Y |
|
|
Redo |
Z |
|
|
Undo |