The Curious Schemer

The following sentence is false. The preceding sentence is true.

10 Eclipse Navigation Shortcuts Every Java Programmer Should Know

with 238 comments

Man, I’m such an impatient guy. I cringe whenever I see somebody squint and frown, looking for a JSP file in Eclipse by browsing painfully through the gazillion JSPs in multiple folders in the Package Explorer. I squirm whenever I see somebody looking for a Java class by clicking through packages, one by one, backtracking if it’s the wrong package, and so on, until he sees the correct Java class.

I mean, any resource in the workspace is literally seconds away. Ditto to classes (and interfaces, and members, and so on). Why waste time and brain cycles to wade through countless lines in countless files? I thought that every Eclipse user knows this, in fact, if you’re reading this, most probably you already know this too. But thousands of Eclipse JDT users who never bother to read tech blogs in all probability will also never bother to find out what Eclipse can do for them. And it’s a pity, really, because they’re really missing out a lot. So maybe if you know one, you can forward this to them or something. Make them more productive or something, ya know. 30 seconds saved for every file can add up to really a lot!

So without further ado, let’s say you want to:

  • Open any file quickly without browsing for it in the Package Explorer: Ctrl + Shift + R. This shortcut opens a dialog box that accepts the name of the file you’re looking for. It even accepts wildcard characters, yo. Typing * will give you the list of all files that ends with So everytime you want to open a file–stop that hand from going to the mouse, and press Ctrl + Shift + R instead!

Opening a resource in Eclipse

  • Open a type (e.g.: a class, an interface) without clicking through interminable list of packages: Ctrl + Shift + T. If what you want is a Java type, this shortcut will do the trick. Unlike the previous shortcut, this even works when you don’t have the Java source file in your workspace (e.g.: when you’re opening a type from the JDK).

Opening a type in Eclipse

  • Go directly to a member (method, variable) of a huge class file, especially when a lot of methods are named similarly: Ctrl + O. Say, you’re browsing through a file which has 500+ lines of code. How do you look for a method? Don’t use Ctrl + F and then type the method name. Use Ctrl + O, which gives you a list of candidates that match what you’ve typed so far. Select the member you want using the arrow keys, and press Enter. (Alternatively, if you just want to jump from one member to the next (or previous), you can use Ctrl + Shift + ↓ or Ctrl + Shift + ↑, respectively.) UPDATE: As Nick pointed out in the comments section, pressing Ctrl + O again shows the inherited members. Thanks Nick! :)

Browse Member


  • Go to line number N in the source file: Ctrl + L, enter line number. Of course if the stack trace is in the Eclipse console, you can just click the hyperlink. But if it’s in a log file or something, just use this shortcut to go to the line in a jiffy.

Go to a line number

  • Go to the last edit location: Ctrl + Q for . If you have a big file, it’s annoying to jump from one location in line 1000+ to 2000+ only to realize after looking at line 2017 that you’ve made a mistake in that location near line 1000+ just now. This shortcut brings you right to where you last edited a file. Very handy in a big file. Gone are the days of “let’s see… where did I edit it again… nope, nope… ah there it is”. (This even works when you’re already looking at a different file.)
  • Go to a supertype/subtype: Ctrl + T. Before I found this, if I want to go to the superclass of a class, I’d go the the very top of the file, hover my mouse over its superclass, hold Ctrl, and click. Disgusting. Now I just press Ctrl + T and I get this dialog below, which toggles between supertypes and subtypes when you press Ctrl + T again.

Subtype hierarchy view

Supertype hierarchy view

  • Go to other open editors: Ctrl + E. I know you can cycle through the editors using Ctrl + F6 as well, but I prefer Ctrl + E because Ctrl + F6 has this annoying behaviour of requiring you to keep the Ctrl key down, and the distance between Ctrl and F6 is so far I have to twist my left hand to do that. Just press Ctrl + E, and either use the arrow buttons, or type the name of the file you’re editing.

Open editor

  • Move to one problem (i.e.: error, warning) to the next (or previous) in a file: Ctrl + . for next, and Ctrl + , for previous problem. No need to lift your hands off the keyboard to click on that red or yellow stripe.
  • Hop back and forth through the files you have visited: Alt + ← and Alt + →, respectively. I have to admit I don’t find myself using these two often, though.
  • Go to a type declaration: F3. Alternatively, you can hold Ctrl down and click the hyperlinked variable or class or whatever it is the declaration of which you want to see–but why lift your hand off the keyboard? Just press F3 and Eclipse will bring you to the declaration of whatever is at the cursor at that moment.

OK, that’s it for this post. There are tons of other Eclipse shortcuts not covered by this article. To see the whole list, just open up your Eclipse (I’m assuming Eclipse 3.2 here–in older or more recent versions this may differ slightly), go to Help → Help Contents → Java Development User Guide → Reference → Menus and Actions. The whole motherload is there, from generating comments, correcting indentations, surrounding with, and so on.

The point I’m trying to get across is: Eclipse has a LOT of shortcuts to make things real easy for you. Java (or heck, any software) development is hard. We shouldn’t make it harder on ourselves by fighting our tools! Let our tools help us as much as possible, so we all can go back on the dot and spend more time with our family, lovers, or whatever it is we want to spend more time on. There’s no honour in working hard inefficiently. Only disgrace.

About these ads

Written by rayfd

May 20, 2007 at 6:22 am

Posted in Java, Technology

238 Responses

Subscribe to comments with RSS.

  1. Sometimes we just don’t spend the time learning how to use our development tools, and keep using Eclipse as a simple text editor. These shortcuts really make development easier. I already use a lot of Eclipse shortcuts, nut nonetheless I didn’t knew some of these :)
    One of my favorites is CTRL+Shift+G, which searches the workspace for references to the selected method or variable.


    May 21, 2007 at 10:40 am

    • And 4 years later, that is just the command I was looking for


      August 18, 2011 at 9:31 pm

      • Also for anyone else reading this 4 years later, CTRL+ALT+H will do the same thing, but will also do this really neat thing of showing the call hierarchy so you can see where the execution thread is going without having to trace it yourself!
        Its already been mentioned further down but I thought I’d attach it to the top post :)


        September 23, 2011 at 4:23 pm

      • And 1 year later, ctl-alt-h was the command I was looking for…..

        Yntze Prins

        July 5, 2012 at 10:01 am

    • Here is my list of useful eclipse shortcut .


      November 19, 2011 at 3:37 am

    • I always believe value in learning more about IDE on which you are working on. By the way here is my list of top 30 Eclipse keyboard shortcuts

      Java dude

      October 10, 2012 at 6:38 pm

  2. A complete list of shortcuts can be seen with Alt-Shift-L . Going through that list is sure to teach you a few new tricks about Eclipse :)


    May 21, 2007 at 12:45 pm

    • Dude, sorry, actually it’s CTRL + Shift + L.


      Rodrigo Bento

      January 22, 2010 at 8:02 pm

  3. hi,
    these are great!
    thanks for sharing….


    May 21, 2007 at 2:22 pm

  4. An addition to the Ctrl + o : doing Ctrl + o once gives you the ability to quick search/jump to methods in the class you have open, doing Ctrl + o twice, gives you the same ability but then for all methods in the current class plus super classes. Very handy!


    May 21, 2007 at 2:29 pm

  5. Ah yes, many thanks, Nick! I have updated the post to reflect this :)


    May 21, 2007 at 2:42 pm

  6. selman, great to hear that you find it useful :)


    May 21, 2007 at 2:42 pm

  7. Just today, I was hunting for a file in multiple packages in Eclipse and to find this article an hour later! Needless to say, thank you.
    As purists would say – RTFM. ;-)


    May 21, 2007 at 2:58 pm

  8. One of my favorites is CTRL+F6 which gives you the list of files opened in editor. Togo the last file visited CTRL+F6. To go to any other file opened CTRL+(hold) F6

    Venkat Burri

    May 21, 2007 at 3:37 pm

  9. Ctrl+F3 also shows the list of the functions in a class. I never knew Ctrl+o is also mapped to the same dialog.


    May 21, 2007 at 4:14 pm

    • hi venu ctrl+f3 will minimize the screen ctrl+o only list out the methods in a class


      May 3, 2010 at 1:23 pm

  10. I configured my workspace so that using the sequence Ctrl+PgDn or Ctrl+PgUp will take you to the next or previous open editors in the workspace. The thing that I find much much more useful is that you can assign your beloved key sequences to the actions that you usually perform…

    One more thing, as mentioned in this article, Alt+ -> and Alt+


    May 21, 2007 at 5:03 pm

  11. Great post!

    I wish I had some of those in Netbeans.


    May 21, 2007 at 5:45 pm

  12. Why not…. Netbeans has enough shortcuts and you can assign your own as well.
    NetBeans IDE Keyboard Shortcuts:


    May 21, 2007 at 6:29 pm

  13. Yes, but it’s missing many things that this blog post features here. For example I think it doesn’t have a “Go to a supertype/subtype” (Ctrl + T) or the granularity of CTRL+SHIFT+R that eclipse has.



    May 21, 2007 at 6:52 pm

  14. The “Open Resource” feature is great, but it’s a little limited by the fact that it does not allow you to select multiple entries in the list. Maybe there is a way to accomplish this (that not includes writing a plugin :-) )?


    May 21, 2007 at 7:12 pm

  15. I’ve remapped CTRL+F6 and CTRL+SHIFT+F6 to CTRL+TAB and CTRL+SHIFT+TAB, respectively, so that it switches between files like most other applications. Of course, this screws me when I work on other people’s machines.


    May 21, 2007 at 8:29 pm

    • +1. I did the same.

      Aleksandar Pavlov

      September 28, 2011 at 8:49 am

  16. [...] 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know : j’utilise la moitié. [...]

  17. [...] Eclipse shortcut keys (via (tags: eclipse java programming howto) [...]

  18. Thanks for the update!

    May 21, 2007 at 11:15 pm

  19. [...] 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know Man, I’m such an impatient guy. I cringe whenever I see somebody squint and frown, looking for a JSP file in […] [...]

  20. Good summary.
    Thanks for putting this list.


    May 22, 2007 at 12:05 am

  21. Um..

    “Man, I’m such an impatient guy. I cringe whenever I see somebody squint and frown”

    For a guy your a pretty exellent writer and honest. To be honest I like people squiting it’s funny.

    Kaida Rose

    May 22, 2007 at 12:53 am

  22. Great :)

    Samiha Esha

    May 22, 2007 at 1:55 am

  23. Working Smarter

    I agree with rayfd. It is highly annoying watching a developer struggle to find something in the package explorer when one simple keystroke will get them where they want to go. Check it out, and drop a note letting him know you appreciate his efforts…

  24. Here are somemore useful shortcuts

    Breakpoints Shift+Alt+Q B
    Cheat Sheets Shift+Alt+Q H
    Console Shift+Alt+Q C
    Java Declaration Shift+Alt+Q D
    Java Package Explorer Shift+Alt+Q P
    Java Type Hierarchy Shift+Alt+Q T
    Javadoc Shift+Alt+Q J
    Search Shift+Alt+Q S
    Show View (View: Outline)Shift+Alt+Q O
    Show View (View: Problems)Shift+Alt+Q X
    Synchronize Shift+Alt+Q Y
    Variables Shift+Alt+Q V


    May 22, 2007 at 4:06 am

    • Shift+Alt+Q and then wait a second and Eclipse can remind of of all these shortcuts with similar starts


      January 28, 2011 at 9:13 am

  25. hey! thanks for the info…did u also know that you can press ctrl-alt-h to display call hierarchy? also you can easily indent your code lines by pressing ctrl-I(as in the letter “I”)…have a good time coding and hope to have more correspondence with you! :)


    May 22, 2007 at 6:33 am

  26. Good One!! Thx


    May 22, 2007 at 6:41 am

  27. What about another post on the java language shortcuts ( like sysout + Ctrl-Esp => System.out.print() … it’s a shame I never need to write this in my code;- )


    May 22, 2007 at 7:25 am

  28. [...] Uncategorized — ashikuzzaman @ 12:11 am A lilttle earlier I came accross this use entry of 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know . Its specially useful for me although I already use quite a few of [...]

  29. Very useful post. I used a few of these shortcuts already.


    May 22, 2007 at 9:59 am

  30. You can also find a couple of quick reference sheets for various versions of Eclipse ready to print here:

  31. To display hierachy view of current class, hit F4 – very useful.

    Boy Eclipse if 4ever; I love it.


    May 23, 2007 at 9:25 am

  32. To display hierachy view of current class, hit F4 – very useful.

    Boy Eclipse is 4ever; I just love it.


    May 23, 2007 at 9:25 am

  33. [...] read the 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know, I tried to figure out my favorites shortcuts. I think I would go [...]

  34. Holy crap, Ray. This post is awesome. I’m the king of taking 5 years to learn a useful shortcut. Open Reference, Type, and Hierarchy are already ones I survive on.. but CTL+Q and CTL+O look like a whole lot of fun. Thanks.


    May 24, 2007 at 12:46 am

  35. Great post !

    When editing Java code, I like to be able to manage my imports automatically (Ctrl + Shift + O), and change the incrementation of the code (Ctrl + i).


    May 24, 2007 at 4:59 pm

  36. [...] 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know « The Curious Schemer (tags: Eclipse ide tips shortcuts) [...]

  37. I can’t believe you forgot CTRL+3, the latest and greatest navigation shortcut added to Eclipse 3.3M7:

    If you’re still using Eclipse 3.2.x, that reason alone should make you want to step up to the latest. Why wait until the end of June? ;-)

    Nick Boldt

    May 26, 2007 at 12:59 am

  38. Nick, that’s good to know–thanks! :) Yeah, I’m still using Eclipse 3.2.x. We’re using a bunch of plugins for our project, so we’re not risking moving to 3.3 yet now. But that’s something to look forward to for sure.


    May 26, 2007 at 1:42 am

  39. You probably have forgotten to include Ctrl-Shift-O which automatically organizes import, quite useful when you’re getting red underlines due to unknown class declarations and warnings on unused imports.


    May 26, 2007 at 10:57 pm

  40. Hi Allan–not at all! I’m featuring only 10 shortcuts, so obviously a lot of other shortcuts will not be featured although they’re certainly not forgotten. But more importantly, the shortcuts in this post are _navigation_ shortcuts, and Ctrl + Shift + O is not one of them.


    May 27, 2007 at 12:29 am

  41. Brilliant! I wished I could digg this here, where’s the digg button?


    Yuen-Chi Lian

    June 16, 2007 at 4:41 pm

  42. Hi Yuen-Chi, thanks! I just added the button :)


    June 17, 2007 at 10:06 am

  43. i just installed ecllipse n surfing to get some tips abt working on it n found this one very helpful.
    thnx buddy


    June 25, 2007 at 12:44 pm

  44. I’ve always found ctrl+h for searching particularly useful…

    Gautam Vasudev

    June 26, 2007 at 12:21 am

  45. Really good it saved a lot time ..
    Can you please publish the shortcuts for some methods in eclipse so that i dont need to type full name of it.


    July 18, 2007 at 6:25 am

  46. good…very good help


    July 26, 2007 at 11:13 am

  47. good ………….. very good


    July 30, 2007 at 10:40 am

  48. Refer this site for all eclipse navigation shortcuts


    August 1, 2007 at 6:19 am

    • thnk u ashwini
      This site really helpful ………………………………………


      August 16, 2011 at 3:48 am

  49. I’m new to Eclipse shortcuts and one thing I noticed was that CTL+O and CTL+F3 are different. CTL+O will give the class members of the current file. CTL+F3 will give the class members of the currently selected class within the file. If a class isn’t selected then it then it will default to the action as CTL+O


    September 12, 2007 at 6:40 pm

  50. On a java class like JFrame, or on its method I pressed F3, it was not showing any description. F3 IS NOT WORKING IN MY ECLIPSE ENVIRONMENT. Please help me out. I dont know how to change the configure settings so that F3 start working properly.


    September 14, 2007 at 7:00 am

    • give jar path mean java path and it will work


      February 1, 2011 at 8:44 am

  51. Very useful, can save lot of time in searching


    September 18, 2007 at 8:15 am

  52. You almost read my mind while coming up the list of short cuts. These are precisely the shortcuts that a Java developer craves for during the course of his Eclipse usage. Thanks a ton!


    September 28, 2007 at 4:06 pm

  53. Really useful. Thanx a lot !


    September 28, 2007 at 5:50 pm

  54. Use Ctrl+Shift+L to view most of this listings.
    Doing Ctrl+Shift+L again will open the KEY window where you can change/add new Key Maps

    :)eepak Kaul

    Deepak Kaul

    October 11, 2007 at 11:08 pm

  55. Great Post. It increased my productivity.

    Is there any shortcut that will help me avoid using the arrow keys ? I don’t like the frequent journeys to the arrow keys while coding.

    Just something like Vim, that uses like I, J, K, L as the arrow key ?

    Mahmudul Hasan

    November 21, 2007 at 11:08 am

  56. Regarding Ctrl + Shift + T and wildcards….

    One of the nice features about the Open Type dialog (Ctrl + Shift + T) is that you can type just the uppercase letters in a class name, and it will display all classes with that sequence of uppercase letters. So if you type NPE, the results will contain NoPermissionException, NullPointerException, etc.

    This feature makes it really easy to search for classes with long names.

    Mike E

    December 6, 2007 at 10:16 pm

  57. very interesting, but I don’t agree with you


    December 15, 2007 at 1:13 pm

  58. I would like to see a continuation of the topic


    December 20, 2007 at 10:34 am

  59. Nice List..
    I do use most of them
    Thanks specially for the Ctrl + E
    I was thinking of the shortcut for this for long…

    Can anyone tell Whats the shortcut to find the next occurance of the string that you tried to find using Ctrl + F

    F3 doesn’t seem to work here as in other editors..

    Bijay Rungta

    January 24, 2008 at 2:56 pm

    • Better late than never I hope … I just found it (Eclipse 3.6): Ctrl+K = Find Next. Ctrl+Shift+K = Find Previous.

      Alternatively you can change the meaning of F3 to Find Next in Window | Preferences | General | Keys.


      November 11, 2011 at 8:40 am

  60. Very nice! A few of these I use all the time but some others were new to me. One of my favorites that’s not on the list is Ctrl + Alt + H = Open Call Hierarchy.


    January 24, 2008 at 5:23 pm

  61. [...] 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know « The Curious Schemer (tags: keyboard shortcuts eclipse development cheatsheet tips productivity howto) [...]

  62. :)

    very nice

    January 30, 2008 at 12:56 pm

  63. Ray,
    for me the main problem was remembering all the neat shortcuts I wanted to use. Finally I wrote an Eclipse plugin MouseFeed ( to help me with that. If you call an action with a mouse click, the plugin will remind the keyboard shortcut for it. You can even tell it to force you to use keyboard shortcuts – the actions called by mouse won’t run. The configuration is action-specific.
    Please take a look and let me know what you think.


    February 5, 2008 at 2:40 pm

  64. [...] More timesavers: Eclipse Tips Eclipse Navigations Shortcuts [...]

  65. Does Ctrl + Mouse Click go to a Type declaration in Eclipse?

    I’m using Europa, but the click shortcut doesn’t seem to work.


    February 20, 2008 at 5:01 pm

  66. Does anyone know why Ctrl-E lists the files in two groups?
    Yes, I know that the bottom group is the ones for which
    the tabs are currently visible, but when I’m searching for
    a buffer, I’m supposed to remember which buffers are
    have tabs that are currently visible? Is there any way
    to just list all the buffers, alphabetically?

    Michael Boyle

    February 21, 2008 at 8:17 pm

  67. very usuful tips and these are helpful to me a lot

    this feature is good

    March 29, 2008 at 1:35 pm

  68. thank you so much..


    April 1, 2008 at 5:03 pm

  69. [...] And since it’s eclipse and there’s no point in duplicating the information, here is a useful link to 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know. [...]

  70. [...] My new favorite Eclipse feature Eclipse Usage Tips 10 Eclipse Navigation Shortcuts Every Java Programmer Should Knowลอง Google “Eclipse shortcut” มีอยู่เพียบครับ [...]

  71. Hi All,
    I have a problem with WSAD5.1 Editor. when I clicked left mouse button with Holding down the ctrl key on any variable or mathod in a file then that method declaration is opening in a new window. now the problem is that I am able to see only the declaration in that file and not full file. while previosly I was able to see the full file.

    please if you know the solution or is it due to some setting changed then please let me know ASAP.


    Amit Bansal

    April 22, 2008 at 7:58 am

  72. Thanks…


    May 2, 2008 at 8:18 am

  73. [...] 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know « The Curious Schemer (tags: eclipse productivity Java shortcuts development) [...]

  74. Note that on mac the keys are slightly different — browse resources is command+shift+R. Go figure :)


    May 16, 2008 at 8:15 pm

  75. The information is very usefull. Thanks a lot


    May 29, 2008 at 7:20 am

  76. Useful tips. Am sure it will save some time for me. Thanks a many!!


    June 3, 2008 at 7:21 am

  77. Alt + Shift + R on the name of a variable allows you to rename it, and it will change all the references on the file.


    June 19, 2008 at 8:27 pm

  78. nice article :) here is the summary

    Open any resource: Ctrl + Shift + R

    Open a type: Ctrl + Shift + R

    Go directly to a member (method, variable): Ctrl + O

    Go to line: Ctrl + L

    Go to the last edit location: Ctrl + Q

    Go to a supertype/subtype: Ctrl + T

    Go to next problem Ctrl + .

    Hop back and forth through the files you have visited: Alt + ← and Alt + →

    Go to a type declaration: F3 on the variable

    Go to a type declaration: Ctrl down and click the hyperlinked variable


    July 2, 2008 at 6:02 am

  79. oops,
    Open a type: Ctrl + Shift + T


    July 2, 2008 at 6:03 am

  80. Ctrl +Shift + L will show list of all the shortcuts used in Eclipse. It is really helpful to learn shortcuts with that. If you forgot just use Ctrl +Shift + L to have a quick look at them.


    July 20, 2008 at 10:09 am

  81. [...] also found a nice blog entry about eclipse shortcuts. But he lacks to explain one of the uses for ctrl-t: if you have a certain function you can find [...]

  82. Hi, Its a great pleaseure to thanks all for this valuable information , keep rocking,
    Can any one tell the shorcut to apply predefined error solution for our errors in our coding

    Davenci D R P

    August 25, 2008 at 10:38 am

  83. Great post. Thanks.


    August 25, 2008 at 1:04 pm

  84. [...] 10 Shortcuts Eclipse IDE Veja aqui um artigo que trata os 10 atalhos mais usados da IDE Eclipse que todo programador Java deveria [...]

  85. Great tips, going to save me some time

    Sean K

    September 25, 2008 at 6:40 pm

  86. Hi guys,
    I have been using eclipse for quite a while now but haven’t been able to find a particular which I think exists.
    Many sites offer code with line numbers, when we do a copy/paste the line numbers too get copied, Could anyone suggest a shortcut to remove all the unwanted line numbers at once?

    The post is awesome,


    September 26, 2008 at 4:11 am

  87. Great article, cheers!

    I actually do use alt quite a lot already, I find them pretty useful.

    My top shortcut you didn’t mention is
    ctrl shift p
    to switch between opening and closing braces.


    September 30, 2008 at 4:53 pm

    • Hats Off to u ray and sam for publishing such Excellent and very useful short cuts


      October 1, 2009 at 12:29 pm

  88. Anyone know of a shortcut that stacks declarations? F3 takes you to a declaration, but is there a shortcut to get you back to where you were? Another editor I’ve used will actually stack the jumps to var/method/class declarations, so you can jump to a declaration, browse around, then jump to another declration, etc. When you’re done, you can backtrack to where you started. Is there a counterpart to F3?


    September 30, 2008 at 8:39 pm

    • Any update on your question of jumpinig back from a declaration..? I’m looking for the same feature… I saw proposals to use Alt left but this is doing “Back” instead of stacking the declarations…
      Please advice.



      December 2, 2009 at 8:07 am

      • just added notification..


        December 2, 2009 at 8:09 am

  89. Anyone know of a shortcut similar to Ctrl+O but that looks for methods/members in all the workspace?

    Sometimes I want to jump to a function directly without having to Ctrl-Shift-R to its class.


    October 23, 2008 at 8:26 am

  90. thnx


    January 7, 2009 at 11:48 am

  91. I was one of those searching for classes, methods and packages with great difficulty. but no longer…

    Thank You!


    January 16, 2009 at 6:42 pm

  92. Very nice list – a couple I find myself using all the time are :

    Back: Reveals the previous editor location in the location history. Alt + Left

    Forward: Reveals the next editor location in the location history. Alt + Right

    All the Best,


    January 20, 2009 at 12:48 pm

  93. kickass article on eclipse man ….very nice ..loved it


    February 4, 2009 at 4:58 am

  94. Superb article, Great Work!

    I actually do use alt quite a lot already, I find them pretty useful.

    Saurav K. Mehta

    February 6, 2009 at 12:21 pm

  95. [...] eclipse shortcut keys By maohao Here [...]

    • thanks for tips

      puneet negi

      December 20, 2009 at 7:56 am

  96. Thanks! Really useful shortcuts list and very well explained.

    Andrea Bresolin

    February 16, 2009 at 8:46 am

  97. good work !!!!!Also thankyou .


    February 18, 2009 at 6:13 am

  98. Nicely done mate ;)

    Arif Octovian

    February 25, 2009 at 3:46 am

  99. [...] Nach längere Zeit benutze ich Eclipse wieder intensiver und hatte natürlich die ganzen nützlichen Shortcuts vergessen. Deshalb für mich eine kleine List der wichtigsten Shortcuts für Eclipse. Geteste wurde alles in Eclipse SDK Version Eine vollständige Liste aller Tastenkombinationen findet ihr hier als pdf (via). Gute Listen findet man auch auf,, und rayfd. [...]

  100. Best intro article on Eclipse keyboard shortcuts, after learning which one could easily be motivated to learn and use most other Eclipse shortcuts as specified in its 2-page shortcut default conf cheat sheet.


    March 20, 2009 at 5:23 pm

  101. this article is awesome
    can anyone tell me if there is a way to link files to one another. I know you can provide links using Javadoc comments, but that has limitations that it will only link to other Java files and they must be in the same package.

    What I would like is all three: My Java file, the related Junit test case and the related Junit tescase(usually a .cpp file) should have links to each other.
    And these reside in different packages, and I cannot put them together.


    March 27, 2009 at 3:54 pm

  102. I meant Java Code, JUnit test case, and test DATA(the .cpp file)


    March 28, 2009 at 2:28 pm

  103. Hey, great compilation!
    But you forgot another really helpful one:

    Ctrl-3 opens a quick search for basically EVERYTHING you can do in the menus. (Show a particular view/perspective, generate getter/setter, commit to svn)


    April 1, 2009 at 3:10 pm

  104. Wow, thx, that’s helpfull for nub like me XD

    Widya Perwira

    April 7, 2009 at 8:07 am

  105. [...] Eclipse shortcuts 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know Share and [...]

  106. Re: switching between editors/files.
    As soon as I install Eclipse, I like to immediately remap the next/previous editor shortcuts to ctrl-tab and ctrl-shift-tab.
    As natural as switching tabs in Firefox – this is the number one shortcut I end up using on a daily basis.

    Artem Russakovskii

    May 10, 2009 at 6:15 am

  107. Thanks,


    May 11, 2009 at 4:19 pm

  108. Very thanks my friend.They are very usefull.


    June 25, 2009 at 8:13 am

  109. [...] 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know [...]

  110. A very nice subject.. thank you so much.. also for the rest very nice comments

    Saber 4m Tunisia

    July 23, 2009 at 9:30 am

  111. Great list, very comprehensive and useful.
    Thanks a lot, I’ve been looking for the Ctrl+Q type of option for ever.


    July 23, 2009 at 6:18 pm

  112. Superb..Thanks a lot.. :)


    August 7, 2009 at 9:51 am

  113. [...] A very handy guide to Eclipse keyboard shortcuts: 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know « The Curious Schemer. [...]

  114. yeeaah, so thank you.


    August 11, 2009 at 9:52 am

  115. Awesome ! thanks a million.


    August 12, 2009 at 1:21 pm



    August 18, 2009 at 5:24 am

  117. Good tips! Thanks, this is exactly what I was looking for in Eclipse.


    August 31, 2009 at 5:31 pm

  118. Here’s a good one… ALT + F4

    Then launch NetBeans.



    September 14, 2009 at 3:59 am

  119. Only a moron use NetBeans


    September 20, 2009 at 2:38 am

  120. [...] Les 10 raccourcis de navigation pour Eclipse que les développeur Java doivent impérativement conna… (en) [...]

  121. [...] 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know [...]

  122. [...] able to find a lot of posts promoting some lists of “Top 10 eclipse shortcuts” (I like this one). I believe that small video tutorials can show more easily (rather than a bunch of screenshots) [...]

  123. Go to the last edit location: Ctrl + Q.

    This one is great but even better doen in Netbeans. Actually this is a reason for me to prefere Netbeans over Eclipse sometimes. (Not trying to start a flame war here but just to increase the motivation to find an answer to my question ;)

    In Netbeans hitting Ctrl + Q twice takes you to the position before the last change, three times to the one before that, and so on. You can ride through your history of change positions. This is awsome.

    Does Anybody have an idea how to achieve this in Eclipse? I miss this sooo desperately when working in Eclipse.

    Tobias Schoessler

    October 19, 2009 at 6:57 pm

  124. Muito obrigato… foi muito útil.

    Adelar da Silva Queiróz

    October 28, 2009 at 11:51 pm

  125. [...] The Curious Schemer [...]

  126. Even after all this time, this post is still hugely helpful (especially the comments). My question is how come this information isn’t obvious from within Eclipse itself?? For example, I didn’t even know ctrl-r “Open Resource” even existed! It’s not in any menu nor book I’d ever found….without this post, I’d have never know about…incredible!


    November 22, 2009 at 6:22 pm

  127. [...] The Curious Schemer [...]

  128. its good thanks buddy


    December 6, 2009 at 11:45 am

  129. good introductioN!


    December 9, 2009 at 2:12 am

  130. Thanks for the nice article!
    It’s also very useful to create new assignments – for example to switch perspectives, see Eclipse: quickly change perspectives with keyboard shortcuts


    December 9, 2009 at 2:28 pm

  131. [...] 31/12/2009 · Dejar un comentario Fuente [...]

  132. [...] 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know [...]

  133. Thank You Very much !


    February 2, 2010 at 5:36 am

  134. shortcut-finder

    February 22, 2010 at 3:05 pm

  135. very informative..thanks a lot.
    james smith

    james smith

    April 21, 2010 at 1:05 pm

  136. The best part is u can rebind the shortcuts and have you keys at your convenience….

    Try pressting ctrl+shift+L and then ctrl+shift+L,
    and rebind the shortcuts by selecting the command and press keys for new key.


    May 17, 2010 at 7:11 am

  137. Wow…..I used all the shortcuts…


    July 15, 2010 at 9:53 am

  138. Thankx for the shortcuts… It’s so helpful…


    August 12, 2010 at 4:45 am

  139. [...]  1.… [...]

  140. Invaluable list, thanks.


    August 18, 2010 at 1:28 pm

  141. u rocking man……nice short cuts….love them…..


    September 1, 2010 at 6:56 am

  142. Thanks for a good article. This will save me and my company a lot of time. Even though this article starts to get a little old, everything works fine, but an updated version with more shortcuts had been great;)


    September 2, 2010 at 12:53 pm

  143. Precisely what I was looking for. Thanks a lot!

    Amit Badrayani

    September 7, 2010 at 2:12 pm

  144. Hi,

    note that you can customize the shortcuts of Eclipse.
    Simply go to Preferences then General > Keys

    Guillaume bretou

    September 7, 2010 at 8:08 pm

  145. pengen ngecommnet tapi di sebelah kiri ada foto
    gimana caranya ??


    September 14, 2010 at 7:34 am

  146. One of my favorites is the bookmark / annotation navigation.

    just bind the add bookmark.
    and then use ctrl + . | ctrl + , to navigate trhough your bookmarks.

    (You might have to add bookmarks in the annotation navigation toolbar where you will see warnings and errors).

    All Time favorite (mentionned here) Alt + q : last edited line (no matter what file)

    Have fun coding

    Local Search Marketing

    October 8, 2010 at 11:05 am

  147. Most of these hotkeys works in the Eclipse plugins like Flash builder, thanks!

    For those who don’t like spaces formatting – use Tab and Shift+Tab when formatting code from the internet page, for example.

    Fall pictures

    October 15, 2010 at 6:59 am

  148. Nice list but a few huge time-saver ones are missing here:
    Ctrl + space : for auto-completion
    Ctrl + 1 (one) : for suggestions of automatic generation/refactoring
    Ctrl + Shift + F: for auto-formatting
    Ctrl + Shift + O: organize imports (already mentionned by someone else)

    Also a little approximation, Alt + left/right arrow is not only to jump between files. It’s very convenient combined with F3. For example, press F3 on a call to a private method, you’re going there. Then Alt+left arrow brings you back to the call.


    October 28, 2010 at 4:09 pm

  149. One that i found very interesting which helped me a lot these days was:

    Ctrl + H

    It opens a Search window for all your workspace, not only for a file or a project, but for all your projects inside your workspace.

    On this window there are many tabs for the types of archives, i use the file search. I can see all the ocurrences of a specified String in my workspace and then replace it for another thing. Incredibly useful, and much more broad than a simple Ctrl + F.


    Kencka Plus

    November 10, 2010 at 6:34 pm

  150. [...]… This entry was posted in Uncategorized. Bookmark the permalink. ← SMART tools in Ubuntu 10.10 LikeBe the first to like this post. [...]

  151. [...] 10 Eclipse shortcuts [...]

  152. Thank you for that interesting list!

    Christian Straube

    January 30, 2011 at 9:33 am

  153. hi,

    nice tutorial for fresher.all the best and keep adding such tutorials


    February 16, 2011 at 10:29 am

  154. I am new to Java, Eclipse, Velocity etc…
    And to my surprise, I found that, these short cut keys won’t work for velocity.

    Jacob Nelson

    March 10, 2011 at 9:31 pm

  155. OK. These are very good but …

    I have a file open and in a Java Text Editor window and I have a whole bunch of packages and projects that are collapsed in the Package Explorer. I used Cntrl R to find it.

    Is there a shortcut that expands the Package Explorer around the class that I am editing? ie. “Show in Package Explorer”?

    I am sure I saw it somewhere but darned can’t find it now. Any help would be greatly appreciated.


    March 15, 2011 at 1:56 pm

  156. Sometimes we you suffer from sickness without knowing until when someone shows you some medicine, then you ask yourself how comes I never knew I was sick.

    These short cuts revelation is the best thing that I have met this year, I just love the way I can navigate through eclipse, following through errors and fixing them. thanks rayfd


    March 23, 2011 at 9:29 am

  157. CTRL+Shift+H – greps a Search Phrase in all Working Sets

    ALT+Shift+R – Rename method/field/variable and update references in whole workspace (including resource files)

    CTRL+2 – Hit when writing “new Foo()” and directly introduce new variable or field


    March 26, 2011 at 3:29 pm

  158. [...]… On the PopPressed Radar Loaded: Heavyweight Craft Exhibit Showcases Designs Made from Iron & Sugar New Barcelona Boutique Combines Individualism & Industrialism Tommy Hoppe's Calculated Work & Sleeping Ganeshes LikeBe the first to like this post. [...]

  159. Ctrl+T does more than just navigate to super- and subclasses. Put the cursor on a method and hit Ctrl+T, and selecting the super- or subclass will take you to the declaration/implementation of that method in that class.


    May 3, 2011 at 2:59 pm

  160. I think if you have a 2000+ line source code file no amount of shortcut keys will help you!


    May 7, 2011 at 1:01 pm

  161. I… I, . I love you, man!

    Seriously awesome list. :-)

    Rob Nugen

    May 19, 2011 at 7:57 am

  162. I try to learn every shortcut key I can and not only did your list teach me a couple new ones, your advice to check out that section of “Help Contents” revealed a few more gems.

    I was reluctant to check the help section because I thought just going to Preferences > Keys would be better but no! The help section highlights a lot of good shortcuts that would take a long time to uncover by searching through Preferences > Keys!


    June 4, 2011 at 1:47 pm

  163. [...] find that this article (10 Eclipse Navigation Shortcuts…) is great and will save you a lot of time in development/coding if you are programming in Eclipse. I [...]

    Developer Notes

    June 14, 2011 at 3:50 pm

  164. Thanks for article. I have noted down all of sortcuts on page and gonna stick near to my computer. ‘ll use it as much as i can to save time and energy level.

    Thanks again.

    Piyush Patel

    July 6, 2011 at 11:49 am

  165. Good and clear explanation. Thanks for share.

    The Brainmaster

    July 8, 2011 at 5:36 am

  166. Or, simply, “This sentence is false.”


    July 8, 2011 at 8:40 pm

  167. [...] find that this article (10 Eclipse Navigation Shortcuts…) is great and will save you a lot of time in development/coding if you are programming in Eclipse. I [...]

  168. Nice article!

    I recently found the Quick Access Shortcut and I now use it extensively.
    Default shortcut is: CTRL + 3


    July 15, 2011 at 8:53 am

  169. Espectacular, gracias!


    July 22, 2011 at 1:22 pm

  170. Thanks, those shortcuts are really helpful and improve productivity.
    I didn’t know some of them.


    July 31, 2011 at 9:39 am

  171. So nice of you to share this. Great Blog.


    August 13, 2011 at 10:44 am

  172. Very useful information. good work.


    September 13, 2011 at 5:14 am

  173. [...] 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know « The Curious Schemer [...]

  174. This one took me some time to find: F2 brings quick JavaDoc (without touching the mouse).


    September 26, 2011 at 6:39 am

  175. Useful informaton….well explained .


    October 6, 2011 at 9:26 am

  176. DON’T FORGET: hold down Ctrl to make any method, variable or class name a link that you can click to go to their definition (be it in the same class or another one).

    seriously… i dunno how i forgot about this one, and i was sure it’d pop up here, but apparently not. i guess most people know about it, but for those who don’t, it’s great stuff.


    October 6, 2011 at 2:52 pm

  177. oh, and of course:
    Ctrl + Shift + C: comments out the lines that are selected, or if they are commented already it de-comments them.

    …although that’s not navigational, it saves me a lot of time commenting out stuff.


    October 7, 2011 at 8:11 am

    • Ctrl – / does that as well (commenting/uncommenting).

      Shawn D.

      October 7, 2011 at 2:06 pm

  178. Brilliant. Just what I have been looking for. Well published.


    October 20, 2011 at 11:44 am

  179. I frequently use Ctrl + NumPad_Divide (“Enable Folding”).

    Ethan M

    October 27, 2011 at 8:35 pm

  180. Ctrl+Shift+L
    for all shortcut keys display in Eclipse :)


    November 2, 2011 at 2:28 pm

  181. My favorite is Ctrl+PageUp and Ctrl+PageDown


    December 1, 2011 at 5:45 am

  182. Also, when in the ‘Open Type’ menu (Crtl+Shift+T) – if your classes follow CamelCasing, you simply type the capital letters of the class only, and the wildcard between will be implicit.

    EG – if trying to find class ‘MyTestClass’, simply type ‘MTC’


    December 9, 2011 at 7:31 pm

  183. Don’t forget you can use an asterisk as a wildcard when doing the ctrl+o. So, “set*Name” will show “setFirstName”, “setLastName” etc.


    January 24, 2012 at 4:46 pm

  184. Thanks a lot … its really help full … :)

    Ahmad Nadeem (@ahmad_nk01)

    January 31, 2012 at 8:33 am

  185. kode

    February 4, 2012 at 4:57 pm

  186. Navigational Shortcuts:


    Main menu:

    Shift+ F10 Context menu
    Ctrl +F10 View menu

    Workspace navigation:

    F12 Activate editor
    Ctrl+Shift+W Switch editor
    Ctrl +F6 Next editor
    Ctrl +Shift+ F6 Prev editor
    Ctrl F7 Next workspace
    Ctrl Shift F7 Prev workspace
    Ctrl+ F8 Next perspective
    Ctrl +Shift+ F8 Prev perspective
    Alt +Left Back
    Alt+ Right Forward


    Alt +Shift+ S Show in…
    Ctrl+ Shift+ R Jump to file
    Ctrl+ N New file
    Ctrl +S Save file
    Ctrl +Shift+ S Save all files
    Ctrl+ F4 Close file
    Ctrl+ Shift+ F4 Close all files


    Ctrl +L Goto line
    Ctrl +F Find
    Ctrl +J Incremental find
    Ctrl +Shift+ J Incremental find prev
    Ctrl+ K Find next
    Ctrl +Shift+ K Find prev
    Ctrl +H Search workspace
    Ctrl +(dot) Navigate next
    Ctrl +(comma) Navigate prev

    Java navigation:

    F3 Goto declaration
    Ctrl+ Shift+ U Find references in file
    Ctrl +Shift+ G Find references in workspace
    Ctrl+ G Find declarations in workspace
    Ctrl +Shift+ P Navigate to matching bracket/brace
    Ctrl +T Popup type hierarchy
    Ctrl +Shift+ T Open Type
    Ctrl +O Outline of current source
    Ctrl +F3 Outline of current cursor position
    Ctrl +Shift+ Arrow Jump beetween methods up or down
    F2 Show Javadoc
    F4 Show hierarchy
    Ctrl +Alt+ H Open call hierarchy

    General editing:

    Alt+ Arrow+ Move line(s) up or down
    Alt +Shift+ Up Expand selection to enclosing element
    Alt +Shift+ Right Expand selection to next element
    Alt+ Shift+ Left Expand selection to previous element
    Alt +Shift+ Down Restore previous selection
    Ctrl +Alt +Arrow Duplicate line(s) up or down
    Shift +Enter Insert line below
    Ctrl +Shift+ Enter Insert line above
    Ctrl +D Delete line
    Ctrl +Shift+ Q Toggle Quick Diff
    Ctrl +Shift+ Y Convert to lowercase
    Ctrl +Shift +X Convert to uppercase

    Java editing:

    Al+t Shift+ U Remove occurrence annotations
    Ctrl +1 Quick fix (works even when there are no errors
    Ctrl +Shift+ M Add import
    Ctrl +Shift+ F Reformat
    Ctrl +Shift+ O Organize Imports
    Ctrl +/ Comment
    Ctrl +\ UnComment
    Ctrl +Shift+ Space Parameter hints
    Ctrl Hyperlink identifier
    Ctrl+ I Correct indentation
    Shift+ Space Incremental content assist


    F5 Step into
    F6 Step over
    F7 Run to return
    F8 Resume
    F9 Relaunch last
    F11 Run/debug last
    Ctrl+ F11 Run
    Ctrl +Shift+ B Toggle breakpoint
    Ctrl+ D Display
    Ctrl +Q Inspect
    Ctrl +R Run to line
    Ctrl +U Run snippet


    Alt+ T Refactoring menu
    Ctrl+ Shift+ Z Undo refactor
    Ctrl +Shift+ Y Redo refactor
    Alt +Shift +R Rename
    Alt +Shift+ V Move
    Alt +Shift+ I Inline
    Alt +Shift+ M Extract method
    Alt +Shift+ L Extract local
    Alt +Shift+ C Change method signature


    F5 Refresh
    F1 Infopop
    F2 Show resizeable hover


    February 22, 2012 at 8:43 am

    • Thanks, It helped me a lot.


      March 16, 2012 at 8:32 am

    • Wow! Thank you so much. I wish I found this sooner.


      June 19, 2012 at 10:02 am

  187. [...] will be reaching for your mouse frequent enough. There are not enough keys on the keyboard, too. Oh, also, you used Ctrl+D to delete a line? It’s Ctrl+Shift+K on this editor. So much for consistency. (And they’re prone to [...]

  188. [...] istemez fareye uzanmak zorunda kalırız. Zaten, klavyede yeteri kadar tuş da yoktur. Ayrıca, Ctrl+D ile satır silmeye mi alışıksın? Bu editörde Ctrl+Shift+K kullanacaksın. Tutarlılık buraya kadarmış. (Ayrıca kısayollar [...]



    March 5, 2012 at 2:14 pm

    • thanks dudeeeeeeeeeeeeeee


      March 10, 2012 at 5:55 am

  190. Ctrl-T worked for about 15 min … now it does nothing. I @#@#$@ love eclipse!


    May 3, 2012 at 3:26 am

  191. Great list of shortcuts


    July 8, 2012 at 6:48 am

  192. [...] Ref:… « Get Meld Working on Windows [...]

  193. thx guys, this is awsome :)


    August 3, 2012 at 9:54 am

  194. Good list.

    Ctrl+1 (QuickFix) is by far my most used shortcut when coding – I do things like myVar = someMethod(), and then use QuickFix to declare myVar to be the appropriate type.


    August 14, 2012 at 9:30 am

  195. Thanks a lot . I am using this shortcuts on a regular basis!


    October 25, 2012 at 11:40 pm

  196. Amazing people still looking at this like 5.5 years later. Have to say thanks SEO (for finding this) and this dudes page for staying hosted.


    November 3, 2012 at 12:30 am

  197. Thank you, I love tips like these!

    Stanley Owen Smith

    January 29, 2013 at 3:52 am

  198. لست في حاجة إلى حفظها عن ظهر قلب
    وإنما يكفي أن تضغط على
    لترى جميع الموجزات


    March 6, 2013 at 11:48 pm

    • abdennourtoumi, I agree, however knowing it by heart allows you to train your muscle reflex. When it becomes second nature, you don’t even need to pause, and your programming flow doesn’t need to be interrupted to look at the list :)


      March 17, 2013 at 7:55 pm

  199. Thanks a lot. I was really using eclipse as something more than just a text editor. :)


    May 10, 2013 at 5:58 pm

  200. For the skip to a problem error, you have + twice for both forward and back.

    Steven Zahuranec

    September 13, 2013 at 2:07 am

  201. […] 10 Eclipse Navigation Shortcuts Every Java Programmer Should Know What is the keyboard shortcut to go to a file in Eclipse? […]

  202. […] all love to just type and not have to touch the mouse. So here are some cool Eclipse shortcuts to make our lives […]

  203. find a file which is has same filename in different location in workspace


    July 10, 2014 at 8:36 pm

  204. It’s hard to find your website in google. I found it
    on 16 spot, you should build quality backlinks , it will help you
    to increase traffic. I know how to help you, just search in google – k2 seo tricks


    July 19, 2014 at 1:40 am

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: