F3 的 Eclipse 反转 - Alt-Left 并不总是有效
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4706915/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse inverse of F3 - Alt-Left doesn't always work
提问by Frank Meulenaar
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+ Qisn't useful as I didn't always have something edited.
我喜欢 Eclipse 的按F3(或Ctrl+ 单击)跳转到声明的功能,但我也想要一个键盘快捷键返回。Alt+←并不总是这样做(它有时会跳到我正在访问的班级中的其他行,但有时它确实有效,但仍未在其中找到模式)并且Ctrl+Q没有用,因为我没有总是有一些编辑。
回答by Navi
Alt+ ←seems to be the ultimate answer: How to go back in Eclipse?
Alt+←似乎是最终答案:如何回到 Eclipse 中?
This is also mentioned Eclipse Documentation.
这也在Eclipse 文档中提到。
回答by Morten Jensen
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 ?
Alt+←似乎带您在访问过的文件之间来回切换。如果声明在同一个文件中,我希望它不会跳回,但我手头没有可用的 Eclipse 安装。我猜这可能是您没有看到它按预期工作的原因?
回答by Ariel Nahum
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
取消绑定名为“Back”的键,因为它会将编辑器与 Backward History
Window->Preferences->General->Keys and search for Back
Window->Preferences->General->Keys 并搜索 Back
when you select Back clear its binding by pressing the backspace key in the keyboard
当您选择 Back 时,按键盘中的退格键清除其绑定
回答by pr06
On OS X:
在 OS X 上:
Command + [ : Move backward in the editor navigation history
Command + [ :在编辑器导航历史记录中向后移动
Command + ] : Move forward in the editor navigation history
Command + ] :在编辑器导航历史记录中向前移动