Skip to content


Pro eclipse keyboard navigation

Recently, I problably learned the last shortcut I needed for never using my mouse again for browsing code in eclipse. Say goodbye to the mouse!

ctrl+h : start a workspace wide search for a given word.
ctrl+shift+R : search by filename
ctrl+shift+T : search by type
ctrl+T : search hierarchy: very handy when programming against interfaces. Just put the cursor into a methodname and press ctrl+T. It will show you which classes are implementing the interface method.
ctrl+O : search by field/innerclass/method name. This was my last found treasure. It’s faster then pressing ctrl+F and searching for the word.
ctrl+F6 navigate to open files.

Voila, these are the 6 shortcuts you need to learn to be a pro eclipse navigator. It’s pretty impressive when you see someone master this. Going from any method to another is just a matter of seconds.

Greets,

Andries

Posted in eclipse.


3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Tim says

    Thanks for sharing ctrl+t, that’s the only one from your list I hadn’t used yet.

    Personally, I like ctrl+e more than ctrl+f6, as you can quickly filter this list by typing a part of the filename (supports wildcards!).

  2. Andries Inzé says

    Indeed, ctrl+e is much faster. Thanks for the tip!

  3. Johan Vosloo says

    While ctrl+e is cute, it sometimes is still handy to just quickly flip back and forth between one or two open files.

    However, one of the 1st customizations I make to a new Eclipse workspace is to remap the ctrl+F6 key to ctrl+tab (and the ctrl+shift+F6 to ctrl+shift+tab), via Preferences -> General -> Keys.

    I don’t know about you – but I can’t reach ctrl+F6 with one hand, whilst ctrl+tab is very easy one-handed (and common) combination.



Some HTML is OK

or, reply to this post via trackback.