Eclipse: Difference between revisions
Jump to navigation
Jump to search
(→Tips) |
|||
Line 3: | Line 3: | ||
== Keyboard shortcuts == |
== Keyboard shortcuts == |
||
<div style="column-width:25em;"> |
|||
{| class="wikitable" width="100%" |
|||
|- |
|||
|width="140px"| {{kb|C-i}} |
|||
|Correct Indentation |
|||
|- |
|||
| {{kb|C-S-f}} |
|||
|Format |
|||
|} |
|||
{| class="wikitable" width="100%" |
{| class="wikitable" width="100%" |
||
Line 8: | Line 18: | ||
|width="140px"|{{kb|C-S-o}} |
|width="140px"|{{kb|C-S-o}} |
||
|Generate automatically all java <tt>import</tt>. |
|Generate automatically all java <tt>import</tt>. |
||
| |
|} |
||
|colspan="2"| |
|||
{| class="wikitable" width="100%" |
|||
|- |
|- |
||
| {{kb|A-{{kbname|Space}}}} {{kb|A-/}} |
|width="140px"| {{kb|A-{{kbname|Space}}}} {{kb|A-/}} |
||
|Text autocomplete |
|Text autocomplete |
||
|- |
|- |
||
Line 71: | Line 81: | ||
| {{kb|C-S-e}} |
| {{kb|C-S-e}} |
||
|Insert Line |
|Insert Line |
||
| |
|} |
||
|colspan="2"| |
|||
{| class="wikitable" width="100%" |
|||
|- |
|- |
||
| {{kb|F12}} |
|width="140px"| {{kb|F12}} |
||
|Activate Editor |
|Activate Editor |
||
|- |
|- |
||
Line 83: | Line 93: | ||
| {{kb|C-S-F6}} |
| {{kb|C-S-F6}} |
||
|Previous Editor |
|Previous Editor |
||
| |
|} |
||
|colspan="2"| |
|||
{| class="wikitable" width="100%" |
|||
|- |
|- |
||
| {{kb|F11}} |
|width="140px"| {{kb|F11}} |
||
|Debug last launched |
|Debug last launched |
||
|- |
|- |
||
| {{kb|C-F11}} |
| {{kb|C-F11}} |
||
|Run last launched |
|Run last launched |
||
| |
|} |
||
|colspan="2"| |
|||
{| class="wikitable" width="100%" |
|||
|- |
|- |
||
| {{kb|C-S-b}} |
|width="140px"| {{kb|C-S-b}} |
||
|Add/Remove Breakpoint |
|Add/Remove Breakpoint |
||
| |
|} |
||
|colspan="2"| |
|||
{| class="wikitable" width="100%" |
|||
|- |
|- |
||
| {{kb|C-S-u}} |
|width="140px"| {{kb|C-S-u}} |
||
|Search Occurences in File |
|Search Occurences in File |
||
| |
|} |
||
|colspan="2"| |
|||
{| class="wikitable" width="100%" |
|||
|- |
|- |
||
| {{kb|C-.}} |
|width="140px"| {{kb|C-.}} |
||
|Next Item (search, ...) |
|Next Item (search, ...) |
||
|- |
|- |
||
| {{kb|C-,}} |
| {{kb|C-,}} |
||
|Previous Item (search, ...) |
|Previous Item (search, ...) |
||
| |
|} |
||
|colspan="2"| |
|||
{| class="wikitable" width="100%" |
|||
|- |
|- |
||
| {{kb|F5}} |
|width="140px"| {{kb|F5}} |
||
|Debug - Step Into |
|Debug - Step Into |
||
|- |
|- |
||
Line 131: | Line 141: | ||
| {{kb|C-r}} |
| {{kb|C-r}} |
||
|Debug - Run To Line |
|Debug - Run To Line |
||
| |
|} |
||
|colspan="2"| |
|||
{| class="wikitable" width="100%" |
|||
|- |
|- |
||
| {{kb|C-F12}} |
|width="140px"| {{kb|C-F12}} |
||
|Show in Package Explorer (new) |
|Show in Package Explorer (new) |
||
| |
|} |
||
|colspan="2"| |
|||
{| class="wikitable" width="100%" |
|||
|- |
|- |
||
| {{kb|C-f}} |
|width="140px"| {{kb|C-f}} |
||
|Find (and Replace) |
|Find (and Replace) |
||
|- |
|- |
||
Line 155: | Line 165: | ||
| {{kb|C-S-j}} |
| {{kb|C-S-j}} |
||
|Find Incremental Reverse |
|Find Incremental Reverse |
||
| |
|} |
||
|colspan="2"| |
|||
{| class="wikitable" width="100%" |
|||
|- |
|- |
||
| {{kb|F3}} |
|width="140px"| {{kb|F3}} |
||
|Open Declaration |
|Open Declaration |
||
|- |
|- |
||
Line 174: | Line 184: | ||
|Show View Menu |
|Show View Menu |
||
|} |
|} |
||
</div> |
|||
== Plugins == |
== Plugins == |
Revision as of 14:24, 10 October 2011
References
Keyboard shortcuts
C-i | Correct Indentation |
C-S-f | Format |
C-S-o | Generate automatically all java import. |
A-Space A-/ | Text autocomplete |
Drag & Drop / CTRL - Drag & Drop | Copy/Move object |
C-q | Go to last Edit position |
F2 | See editable JavaDoc |
Tab | Typing tab |
C-1 | local rename |
C-1 | Quick Fix / Quick Assist (Create missing method, easy override method...) |
hold CTRL | Auto-Hyperlink when mouse's hovering |
C-S-Up C-S-Down C-F3 C-o | Next declaration |
C-j C-S-j | Incremental Find forward/backware |
C-S-p | Find Matching bracket |
C-S-hold | Drag & Drop method creation |
hold CTRL | Code Assist Insert mode toggle |
C-SPACE | Context Assist |
C-SPACE | Code Assist |
C-S-SPACE | Parameter Assist |
C-e | Delete Line |
C-/ | Comment block |
A-Space | Text Completion |
C-S-e | Insert Line |
F12 | Activate Editor |
C-F6 | Next Editor |
C-S-F6 | Previous Editor |
F11 | Debug last launched |
C-F11 | Run last launched |
C-S-b | Add/Remove Breakpoint |
C-S-u | Search Occurences in File |
C-. | Next Item (search, ...) |
C-, | Previous Item (search, ...) |
F5 | Debug - Step Into |
F6 | Debug - Step Over |
F7 | Debug - Step Return |
F8 | Debug - Resume |
C-r | Debug - Run To Line |
C-F12 | Show in Package Explorer (new) |
C-f | Find (and Replace) |
C-k | Find Next (highlight selection & press shortcut) |
C-S-k | Find Previous |
C-j | Find Incremental (up/down for next/previous, enter to complete) |
C-S-j | Find Incremental Reverse |
F3 | Open Declaration |
C-o | Show Outline |
C-F6 C-S-F6 | Next (Previous) Editor |
C-F7 C-S-F7 | Next (Previous) View |
C-F10 | Show View Menu |
Plugins
- Jalopy 0.2.6 (Obsolete - now in Eclipse)
- TabNavigator 1.1.0
- Readonly Decorator (probably not needed today)
Tips
- Console windows truncates part of the program output → right click in console Windows → Preferences...
- Install KeyTool Plugin:
- Go to http://keytool.sourceforge.net/, installing, write down the URL (typ. http://keytool.sourceforge.net/update)
- In Eclipse, Help → Install New Software...
- Type in the URL in Work with:, click Add, type in a local plugin name, install and then restart Eclipse.
Note: Don't forget to setup the proxy settings if needed (since Eclipse 3.6.0 Helios the settings of IE are used by default).
Formatting
Automatic code indentation and source formatting is now directly embedded in Eclipse. There is no need for an external tool like Jalopy or so.
Frequent shortcuts:
- Ctrl-I — correct indentation
- Ctrl-Shift-F — Format