See the '''Workbench > Keys''' preference page to reassign shortcuts or assign shortcuts to common actions.

+

{| border=1 cellpadding=5

+

| '''Shortcut'''

+

| '''Action'''

+

|-

+

| Alt+Left Alt+Right

+

| Navigate in the editor history.

+

|-

+

| Ctrl+Shift+P

+

| Go to matching bracket.

+

|-

+

| Ctrl+Shift+Up Ctrl+Shift+Down

+

| Go to previous/next member.

+

|-

+

| Ctrl+L

+

| Go to a given line in the editor.

+

|-

+

| Ctrl+S

+

| Save current editor and build.

+

|-

+

| Ctrl+, Ctrl+.

+

| Go to previous/next result/error.

+

|-

+

| Ctrl+Alt+H

+

| Open call hierarchy on a method.

+

|-

+

| Alt+Up Alt+Down

+

| Move current selection up or down.

+

|-

+

| Ctrl+E

+

| Switch to another editor.

+

|-

+

| F3 F4

+

| Open declaration or type hierarchy.

+

|-

+

| Ctrl+T Ctrl+F3

+

| Pop-up type hierarchy or structure.

+

|-

+

| Ctrl+Shift+T

+

| Open a type declaration.

+

|-

+

| Ctrl+Space

+

| Content Assist.

+

|-

+

| Alt+Shift+M

+

| Extract selection into method.

+

|-

+

| Alt+Shift+R

+

| Rename currently selected element.

+

|-

+

| Ctrl+F Ctrl+I Ctrl+K

+

| Find, incremental find, find again.

+

|-

+

| Ctrl+H

+

| Open search dialog.

+

|-

+

| Ctrl+Shift+/ Ctrl+Shift+\

+

| Comment/uncomment selection.

+

|-

+

| Ctrl+M

+

| Maximize/minimize current editor.

+

|-

+

| Ctrl+Shift+M Ctrl+Shift+O

+

| Add/organize imports.

+

|-

+

| F11 Ctrl+F11

+

| Debug/run most recent launch.

+

|}

−

See the '''Workbench &gt; Keys''' preference page to reassign

−

shortcuts or assign shortcuts to common actions.

−

−

−

−

−

−

<table border=1 cellpadding=5>

−

−

<tr bgcolor="lightgrey"><td width="45%">

−

'''Shortcut'''

−

</td><td width="55%">

−

'''Action'''

−

</td></tr>

−

−

<tr><td>

−

Alt+Left &nbsp;Alt+Right

−

</td><td>

−

Navigate in the editor history.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+Shift+P

−

</td><td>

−

Go to matching bracket.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+Shift+Up &nbsp;Ctrl+Shift+Down

−

</td><td>

−

Go to previous/next member.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+L

−

</td><td>

−

Go to a given line in the editor.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+S

−

</td><td>

−

Save current editor and build.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+, &nbsp;Ctrl+.

−

</td><td>

−

Go to previous/next result/error.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+Alt+H

−

</td><td>

−

Open call hierarchy on a method.

−

</td></tr>

−

−

<tr><td>

−

Alt+Up &nbsp; Alt+Down

−

</td><td>

−

Move current selection up or down.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+E

−

</td><td>

−

Switch to another editor.

−

</td></tr>

−

−

<tr><td>

−

F3 &nbsp;F4

−

</td><td>

−

Open declaration or type hierarchy.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+T &nbsp;Ctrl+F3

−

</td><td>

−

Pop-up type hierarchy or structure.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+Shift+T

−

</td><td>

−

Open a type declaration.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+Space

−

</td><td>

−

Content Assist.

−

</td></tr>

−

−

<tr><td>

−

Alt+Shift+M

−

</td><td>

−

Extract selection into method.

−

</td></tr>

−

−

<tr><td>

−

Alt+Shift+R

−

</td><td>

−

Rename currently selected element.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+F &nbsp; Ctrl+I &nbsp;

−

Ctrl+K &nbsp;

−

</td><td>

−

Find, incremental find, find again.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+H

−

</td><td>

−

Open search dialog.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+Shift+/ &nbsp; Ctrl+Shift+\

−

</td><td>

−

Comment/uncomment selection.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+M

−

</td><td>

−

Maximize/minimize current editor.

−

</td></tr>

−

−

<tr><td>

−

Ctrl+Shift+M &nbsp; Ctrl+Shift+O

−

</td><td>

−

Add/organize imports.

−

</td></tr>

−

−

<tr><td>

−

F11 &nbsp; Ctrl+F11

−

</td><td>

−

Debug/run most recent launch.

−

</td></tr>

−

−

</table>

−

&nbsp;&nbsp;&nbsp;&nbsp;'''Table 3.1'''&nbsp;&nbsp;

−

Frequently used JDT keyboard shortcuts

−

<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>

+

{{Copyright

+

| location=Official Eclipse 3. FAQs

+

| locationhref=http://www.eclipsefaq.org/

+

| year=2004

+

| holder=Pearson Education, Inc}}

Revision as of 20:57, 16 August 2007

The table below lists some frequently used but perhaps lesser-known keyboard shortcuts in the context of Java editing.

See Help > Help Contents > Java Development User Guide > Reference > Java Development tools (JDT) Basics > JDT Actions for a list of
keyboard shortcuts provided by the Java development tools.

See the Workbench > Keys preference page to reassign shortcuts or assign shortcuts to common actions.