Version 0.7
Copyright © 2009 Lars Vogel
21.07.2010
| Revision History | ||
|---|---|---|
| Revision 0.1 | 21.06.2009 | Lars Vogel |
| Created | ||
| Revision 0.2 - 0.5 | 22.06.2009 - 26.03.2010 | Lars Vogel |
| bug fixes and enhancements | ||
| Revision 0.6 | 12.07.2010 | Lars Vogel |
| Update to Eclipse 3.6 (Helios) | ||
| Revision 0.7 | 21.07.2010 | Lars Vogel |
| bug fixes and enhancements | ||
Table of Contents
Eclipse supports a lots of actions via keyboard shortcuts. The following lists the most common used shortcuts. Please see Eclipse IDE for Java for an introduction to Eclipse.
All commands can be accessed via the shortcut "CTRL+3". This shortcut opens the Quick Access dialog. In the quick access dialog, you can type the name of any command, preference, wizard, view, perspective, etc.
Table 1. Navigation
| Shortcut | Description |
|---|---|
| CTRL + SHIFT + R | Open / Search for resources, e.g. files |
| CTRL + SHIFT + T | Open / Search for Types |
| CTRL + T | Used on a method or class shows the whole inheritance tree, for example all methods which implement an interface. |
| STRG + O | In place outline view (displayed in editor), allows to search directly for elements in the selected file via type-ahead |
| ALT + LEFT ARROW KEY or ALT + RIGHT ARROW KEY | Go to prev/ next editor position in history |
| Ctrl-PageUp/PageDown | Previous/next tab |
| F3 | Go to declaration of this variable |
| CTRL + SHIFT + P | Go to matching bracket |
Table 2. Search
| Shortcut | Description |
|---|---|
| Ctrl + . | Go to next problem |
| Ctrl + , | Go to previous problem |
| F3 on a variable | Goto Declaration of this variable |
| F4 on a variable | Show type hierarchy |
| Strg + J , Strg +k | Incremental search, find next |
| STRG + SHIFT + G | Search for reference in the workspace |
Table 4. Handling the editor
| Shortcut | Description |
|---|---|
| CTRL + 1 | Quickfix, dependend on cursor position |
| F12 | Focuses the editor (especially helpful if you working with Fast Views |
| Ctrl + M | Maximize Java editor |
| CTRL + Shift + F | Format source code |
| CTRL + Shift + O | Organize the imports / Will import the missing imports. |
| CTRL + Shift + S | Source generation related operations such as creating getter/setter |
| CTRL + Q | Last edited position |
Table 5. Arrow Keys
| Shortcut | Description |
|---|---|
| CTRL + Left | Move one element to the left |
| CTRL + Right | Move one element to the right |
| CTRL + ALT + Up/Down | Copy line |
| ALT + Up / Down | Move line up / down |
| ALT + SHIFT Up / Down | Select the previous / next syntactical element |
| ALT + SHIFT Up / Down / Left / Right | Extending / Reducing the selection of the previous / next syntactical element |
| CTRL + Up / Down | Scroll up / down a line in the editor |
Table 6. Delete
| Shortcut | Description |
|---|---|
| Ctrl + D | Deletes line |
| STRG + SHIFT + DELE | Delete until end of line |
| Ctrl + DELE | Delete next element |
| Ctrl + BACKSPACE | Delete previous element |
Table 7. Variable assignment
| Shortcut | Description |
|---|---|
| Ctrl + 2 + L | Assign statement to new local variable |
| Ctrl + 2 + F | Assign statement to new field |
Table 8.
| Shortcut | Description |
|---|---|
| Shift + F2 | Call the Javadoc for the selected type / class / method |
| Alt+Shift + N + Letter | Type shortcut for the command, e.g. njc to create a new Java class or npip to create a new Plugin project. |
| Alt + Shift + Z | Surround block with try and catch |
Thank you for practicing with this tutorial.
I maintain this tutorial in my private time. If you like the information please help me by using flattr or donating or by
|
Before posting questions, please see the vogella FAQ . If you have questions or find an error in this article please use the www.vogella.de Google Group . I have created a short list how to create good questions which might also help you. .