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

和自甴很熟 提交于 2019-12-22 01:24:31

问题


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.


回答1:


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

This is also mentioned Eclipse Documentation.




回答2:


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 ?




回答3:


The issue is familiar and really annoying, sometimes it jumps back right and sometimes goes to other place.

The solution for this is:

Unbind the key that is called 'Back', because it confuses the editor with the Backward History

Window->Preferences->General->Keys and search for Back

when you select Back clear its binding by pressing the backspace key in the keyboard



来源:https://stackoverflow.com/questions/4706915/eclipse-inverse-of-f3-alt-left-doesnt-always-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!