Está en la página 1de 4

1. Shortcuts Using shortcuts make a developer more productive.

The following lists the most i mportant shortcuts for Eclipse. 1.1. Master Shortcut Eclipse provides keyboard shortcuts for the most common actions. Using shortcuts is usually preferable as you can perform actions much faster. The master shortcut is CTRL+3. This shortcut opens the Quick Access dialog. In t he quick access dialog, you can type the name of any command, preference, wizard , view, perspective, etc. You can also type only parts of the name and the dialo g shows you possible matching elements. 1.2. Navigation Table 1. Navigation Shortcut Description CTRL + SHIFT + R Open / Search for resources, e.g. files CTRL + SHIFT + T Open / Search for Types CTRL + E Allows to select an editor from the currently open editors CTRL + F8 Shortcut for switching perspectives ALT + or ALT + Go to previous/ next editor position in history Ctrl-PageUp/PageDown Switch to previous/next editor F3 Go to the declaration of this variable CTRL + SHIFT + P Go to the matching bracket Table 2. Search Shortcut Description Ctrl + . Go to the next problem / error Ctrl + , Go to the previous problem / error F4 on a variable Show type hierarchy CTRL + J , CTRL + K Incremental search, find next CTRL + SHIFT + G Search for references in the workspace 1.3. Run Table 3. Shortcut Description Ctrl + F11 Run last launched Alt + Shift + X - J Run current selected class as Java application 1.4. Editing Table 4. Handling the editor Shortcut Description CTRL + 1 Quickfix; result depending on cursor position CTRL + Space Content assist/ code completion CTRL + T Show the inheritance tree of the current Java class CTRL + O Show all methods of the current class, press CTRL + O again to s how the inherited methods. F12 Focuses on the editor (especially helpful if you work with Fast Views). Ctrl + M Maximize Java editor CTRL + Shift + F Format source code CTRL + Shift + O Organize the imports; will import the missing import sta tements. CTRL + Q Go to position the cursor at the last changed position in the ed itor. 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 th e previous / next syntactical element CTRL + Up / Down Scroll up / down a line in the editor Table 6. Delete Shortcut Description Ctrl + D Deletes line CTRL + SHIFT + DEL Delete until end of line CTRL + DEL 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 1.5. Coding Table 8. Shortcut Description Shift + F2 Show 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 1.6. Refactoring Table 9. Refactoring Shortcut Description ALT + SHIFT + R Rename CTRL+2, R Rename locally (in file), faster then ALT + SHIFT + R ALT + SHIFT + T Opens the quick refactoring menu Table of Contents 1. Shortcuts 1.1. Master Shortcut 1.2. Navigation 1.3. Run 1.4. Editing 1.5. Coding 1.6. Refactoring 2. Thank you 3. Questions and Discussion 4. Links and Literature 4.1. Source Code 4.2. vogella Resources 1. Shortcuts Using shortcuts make a developer more productive. The following lists the most i mportant shortcuts for Eclipse. 1.1. Master Shortcut Eclipse provides keyboard shortcuts for the most common actions. Using shortcuts is usually preferable as you can perform actions much faster. The master shortcut is CTRL+3. This shortcut opens the Quick Access dialog. In t he quick access dialog, you can type the name of any command, preference, wizard , view, perspective, etc. You can also type only parts of the name and the dialo g shows you possible matching elements. 1.2. Navigation Table 1. Navigation Shortcut Description CTRL + SHIFT + R Open / Search for resources, e.g. files CTRL + SHIFT + T Open / Search for Types CTRL + E Allows to select an editor from the currently open editors

CTRL + F8 Shortcut for switching perspectives ALT + or ALT + Go to previous/ next editor position in history Ctrl-PageUp/PageDown Switch to previous/next editor F3 Go to the declaration of this variable CTRL + SHIFT + P Go to the matching bracket Table 2. Search Shortcut Description Ctrl + . Go to the next problem / error Ctrl + , Go to the previous problem / error F4 on a variable Show type hierarchy CTRL + J , CTRL + K Incremental search, find next CTRL + SHIFT + G Search for references in the workspace 1.3. Run Table 3. Shortcut Description Ctrl + F11 Run last launched Alt + Shift + X - J Run current selected class as Java application 1.4. Editing Table 4. Handling the editor Shortcut Description CTRL + 1 Quickfix; result depending on cursor position CTRL + Space Content assist/ code completion CTRL + T Show the inheritance tree of the current Java class CTRL + O Show all methods of the current class, press CTRL + O again to s how the inherited methods. F12 Focuses on the editor (especially helpful if you work with Fast Views). Ctrl + M Maximize Java editor CTRL + Shift + F Format source code CTRL + Shift + O Organize the imports; will import the missing import sta tements. CTRL + Q Go to position the cursor at the last changed position in the ed itor. 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 th e previous / next syntactical element CTRL + Up / Down Scroll up / down a line in the editor Table 6. Delete Shortcut Description Ctrl + D Deletes line CTRL + SHIFT + DEL Delete until end of line CTRL + DEL 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 1.5. Coding

Table 8. Shortcut Description Shift + F2 Show 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 1.6. Refactoring Table 9. Refactoring Shortcut Description ALT + SHIFT + R Rename CTRL+2, R Rename locally (in file), faster then ALT + SHIFT + R ALT + SHIFT + T Opens the quick refactoring menu

También podría gustarte