I'm loving Eclipse's feature of pressing F3 (or Ctrl + click) to jump to go to a declaration, but I also would like a keyboard shortcut to go back. Alt + ← doesn't always do that (it sometimes jumps to some other line in the class I'm visiting, but sometimes it does work, still haven't found a pattern in this) and Ctrl + Q isn't useful as I didn't always have something edited.
My problem was solved when I restored defaults values of my Keys. Go to Window -> Preferences -> General -> Keys. Then, click Restore Defaults button at the bottom, and restart Eclipse.
Alt + ← seems to take you back and forth between visited files.
Display and Edit the Current Keyboard Shortcuts To see the current key configuration and its keyboard shortcuts, choose the Eclipse > Preferences menu command to open the Eclipse workbench Preferences. Select the General > Editor > Keys page.
Alt + Tab Switch between open apps. Alt + Left arrow key Go back. Alt + Right arrow key Go foward. Alt + Page Up Move up one screen.
Alt + ← seems to be the ultimate answer: How to go back in Eclipse?
This is also mentioned Eclipse Documentation.
Sorry for reviving an old question, but since you still haven't got an accepted answer, I thought I'd give it a shot.
Alt + ← seems to take you back and forth between visited files. If the declaration is in the same file I would expect it not to jump back, but I haven't got a working Eclipse installation at hand. I'm guessing that could be the reason you're not seeing it work as expected ?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With