Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse inverse of F3 - Alt-Left doesn't always work

Tags:

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.

like image 542
Frank Meulenaar Avatar asked Jan 16 '11 17:01

Frank Meulenaar


People also ask

Why Eclipse shortcuts are not working?

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.

How do I go back in Eclipse after f3?

Alt + ← seems to take you back and forth between visited files.

How do I enable shortcuts in Eclipse?

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.

What does Alt left arrow do?

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.


2 Answers

Alt + seems to be the ultimate answer: How to go back in Eclipse?

This is also mentioned Eclipse Documentation.

like image 160
Navi Avatar answered Oct 07 '22 15:10

Navi


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 ?

like image 41
Morten Jensen Avatar answered Oct 07 '22 16:10

Morten Jensen