Eclipse Shortcuts
Place holder for comments.
This entry was posted
on Monday, February 26th, 2007 at 12:58 am and is filed under development.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
February 26th, 2007 at 1:26 am
Add comments
February 28th, 2007 at 1:31 pm
There is another shortcut equivalent to CTRL + F3 and that is Ctrl-O [That is an “O” and not a zero]. I prefer this shortcut because my hands don’t have to move as much when compared to Ctrl-F3. Also, Ctrl-O-O shows all the methods and instance variables, including inherited ones.
Another one that I use a lot is Ctrl-T (for type). Select a class name or a method name and hit Ctrl-T. It will show you the type hierarchy for that class (or in case of a method, the superclass if that method is overriding or implementing it).
February 28th, 2007 at 5:24 pm
i for one like these:
highlight some text, hold ALT and use the arrow keys to move it around
hold down CTRL and click on a method, a class, or a variable to be take to it’s declaration
when calling a function inside the () press ctrl-space to get params hints
February 28th, 2007 at 6:19 pm
Ctrl-Shift-T enables the “Open Type” search box, very handy.
February 28th, 2007 at 6:54 pm
I also could not live without Ctrl-Alt-H (open call hierarchy).
And these refactorings I use frequently enough that I’ve memorized them:
- Alt-Shift-R - rename
- Alt-Shift-M - extract method
- Alt-Shift-L - extract local variable
March 1st, 2007 at 12:44 am
Ctrl-Shift-R opens a named resource in the project; I probably use this a hundred times a day.
March 1st, 2007 at 12:53 am
No list of Eclipse shortcuts is complete without mentioning:
- Ctrl+Space to use templates (you can even add your own)
- Ctrl+1 to make suggestions, handy for fixing errors or generating code
- In addition to Ctrl+Shift+T which Chris mentioned, Ctrl+Shift+R brings up the Open Resource dialog which can also be handy. It’s almost always faster to search for something rather than navigate to it.
March 1st, 2007 at 3:37 pm
I used to hate IDEs - an old emacs hack - until I found this key combination in Eclipse: alt-shift-upArrow (ctrl-w in IDEA and JBuilder). It selects a small token then upon successive invocations increases this selection by logical token grouping.
x.|f(y, z); // ‘|’ represents cursor
alt-shift-upArrow, f selected
again, “f(y, z)” selected
again, “x.f(y, z)” selected
alt-shift-downArrow goes backwards; alt-shift-right|leftArrow extend tokens sideways instead of simply up and down.
(I’m ex-eclipse because my current shop standardized on a different IDE.)
June 28th, 2007 at 8:14 pm
Great list! I’ve got a similar list of Eclipse Short Cuts here …