Eclipse Shortcuts

Place holder for comments.

9 Responses to “Eclipse Shortcuts”

  1. doyle Says:

    Add comments

  2. Raju Says:

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

  3. mk Says:

    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

  4. chris Says:

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

  5. Alex Miller Says:

    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

  6. Dave Newton Says:

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

  7. Jeremy Weiskotten Says:

    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.

  8. Ex-Eclipse User Says:

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

  9. Java Donkey Says:

    Great list! I’ve got a similar list of Eclipse Short Cuts here

Leave a Reply