RSS

Search Engine

Showing posts with label Eclipse Shortcuts. Show all posts
Showing posts with label Eclipse Shortcuts. Show all posts

Monday, June 7, 2010

Navigation

Table 1. Navigation

ShortcutDescription
CTRL + SHIFT + ROpen / Search for resources, e.g. files
CTRL + SHIFT + TOpen / Search for Types
CTRL + TUsed on a method in an interface shows all implementing methods
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 + Mouse-click on a variable Go to declaration of this variable
CTRL + SHIFT + P Go to matching bracket

Table 2. Search

ShortcutDescription
Ctrl + .Go to previous / next problem
F3 on a variable Goto Declaration of this variable
F4 on a variable Show type hierarchy
Strg + J , Strg +kIncremental search, find next
STRG + SHIFT + GSearch for reference in the workspace

Run

Table 3.

ShortcutDescription
Ctrl F11Run last launched
Alt + Shift + X - JRun as Java application

Editing

Table 4. Handling the editor

ShortcutDescription
CTRL + 1Quickfix, dependend on cursor position
F12Focuses the editor (especially helpful if you working with Fast Views
Ctrl + M Maximize Java editor
CTRL + Shift + FFormat 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 + QLast edited position

Table 5. Arrow Keys

ShortcutDescription
CTRL + LeftMove one element to the left
CTRL + RightMove one element to the right
CTRL + ALT + DownCopy line
ALT + Up / DownMove line up / down
ALT + SHIFT Up / DownSelect the previous / next syntactical element
ALT + SHIFT Up / Down / Left / RightExtending / Reducing the selection of the previous / next syntactical element
CTRL + Up / Down Scroll up / down a line in the editor

Table 6. Delete

ShortcutDescription
Ctrl + DDeletes line
STRG + SHIFT + DELEDelete until end of line
Ctrl + DELEDelete next element
Ctrl + BACKSPACEDelete previous element

Table 7. Variable assignment

ShortcutDescription
Ctrl + 2 + LAssign statement to new local variable
Ctrl + 2 + FAssign statement to new field

Other Shortcuts

4.1. Quick Access dialog

CTRL+3 opens the Quick Access dialog. In the quick access dialog, you can type the name of any command, preference, wizard, view, perspective, etc.

4.2. Coding

Table 8.

ShortcutDescription
Shift + F2 Call the Javadoc for the selected type / class / method
Alt+Shift + N + LetterType 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

4.3. Refactoring

Table 9. Refactoring

ShortcutDescription
ALT- SHIFT +R Rename
ALT- SHIFT +RQuick refactoring menu

4.4. Debugging

Table 10. Debugging

ShortcutDescription
F11Debug last run
Cntl + Shift + BToggle breakpoint
F5 Single Step (Down)
F6 Single Step (Jump)
F7Up

Thank you

Thank you for practicing with this tutorial.

If you like the information of this article, please help me by donating.