views:

95

answers:

3

Is there a way to go back in Eclipse? Basically, when I'm jumping around a big project following the execution flow (ctrl + click and etc.), is there a way to retrace a step? If my code calls a method and I go to the method definition, is there a key combination that will take me back to the calling code?

+11  A: 

Press alt+left arrow and alt+right arrow like you would in a web browser.

lucas
Thanks so much :) this is a lifesaver, it was driving me crazy...
froadie
Definitely. One of my (if not THE) most used eclispe shortcuts :)
lucas
Is there an OS X equivalent?
FarmBoy
@FarmBoy have you tried Option-LeftArrow and Option-RightArrow?
Jherico
@Jherico, I guess that swap spaces in his conf ( it does in mine ) http://www.apple.com/macosx/what-is-macosx/apps-and-utilities.html#spaces
OscarRyz
+1 Nice trick. Thanks!
CoolBeans
+3  A: 

In addition to the keyboard shortcut mentioned by @lucas, there is the left and right arrow icons in the toolbar. It also has a handy back to last edit location as well.

Both of these are of course reflected in the menu under Navigate as well.

Robin
+2  A: 

As Robin mentioned, you can also jump to the last edit location. Ctrl+Q is the keyboard shortcut for this!

EMurnane