::doylecentral...

Home

Be more productive with Eclipse, RAD, MyEclipse ... or Dazzel your co-workers with your new found jedi powers for pushing your editor around.

I have been compiling shortcuts and tips that I use day-to-day for Eclipse Most will work for Rational Application Developer 6 and above.

I get asked quite a bit when I'm at other peoples desks how I can move so fast in the editor. Knowing the tool helps. Just learn a little each day about it. I'll be adding them as I they come up.

If you have short cuts or hot keys you would like me to add, send em on! Please, do say why they help you.

Tip: Put some tape on your mouse buttons to remind you to stop using it. Try to put the code down as you think about it.

*Most of these short cuts have been tried on Ubuntu Linux.

CTRL + F8
Switches your open perspectives. I like this when switching from a CVS perspective to a Java perspective.
CTRL + F7
Switches your views.
CTRL + F6
Move to different editors
CTRL + M
This one toggles the current window between maximized and regular.
CTRL + F3
Displays all the methods in the class you are working in and jumps to that one. I'm sure no one would write a 5000 line class but it's helpful when you need to refactor them.
CTRL + J
Incremental Find! Yes this one is great since you don't have to open another window. Look down at the status bar on the bottom when you use this one.
CTRL + SHIFT + O
Orginize imports. I'm sure everyone knows this one. Also, along this line, right clicking the project can do mass orginisation.
ALT + SHIFT + S
Hooks you up with the source options
ALT + SHIFT + S + R
Generate your accessors for your beans. This is a must know. If you are Groovy you can skip this step.
F3
On a methods opens that declaration in that class
ALT + SHIFT + X
This opens a sweet menu with short cuts for running your code, jUnits, Groovy if you have that installed. Anything in Run XX Run As XX your runner.
ALT + SHIFT + D
Same as the above except for Debug.
Select a few lines or one and use the arrow to move that line or block up and down.
Great for moving blocks of code up and down.

Feed Back

By: Java Donkey

Great list! I've got a similar list of <a href="http://www.javadonkey.com/blog/eclipse-keyboard-shortcuts/" title="Eclipse Short Cuts" rel="nofollow">Eclipse Short Cuts here</a> ...

By: Ex-Eclipse User

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.)

By: Jeremy Weiskotten

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.

By: Dave Newton

Ctrl-Shift-R opens a named resource in the project; I probably use this a hundred times a day.

By: Alex Miller

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

By: chris

Ctrl-Shift-T enables the "Open Type" search box, very handy.

By: mk

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

By: Raju

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).

By: doyle

Add comments