如何关闭 Eclipse 中的 Javadoc 悬停(或有选择地启用它)?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1540036/
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
How to turn off the Javadoc hover in Eclipse (or selectively enable it)?
提问by MetroidFan2002
A fellow developer dislikes the Eclipse hovering Javadoc and would like to disable it (one option), or, better yet, only selectively enable it (other option). He's using Eclipse 3.3. Is this possible?
一位开发人员不喜欢 Eclipse 悬停 Javadoc 并希望禁用它(一个选项),或者更好的是,仅选择性地启用它(另一个选项)。他正在使用 Eclipse 3.3。这可能吗?
回答by ChssPly76
Not sure what you mean by "selectively" enabling it. Based on what?
不确定“有选择地”启用它是什么意思。基于什么?
Directions below are for 3.5, I don't have 3.3 lying around to check but I'm pretty sure same settings were available.
下面的说明适用于 3.5,我没有 3.3 可供检查,但我很确定可以使用相同的设置。
Go to Window - Preferences; select Java -> Editor -> Hovers on left hand side. You'll have to uncheckthe Combined Hoveroption on the right; you can then either uncheck Javadocoption or check it but specify a modifier key for it (in the edit box below). In the latter case javadoc hover would only appear if you hold that key.
转到窗口 - 首选项;选择 Java -> 编辑器 -> 在左侧悬停。您必须取消选中右侧的组合悬停选项;然后您可以取消选中Javadoc选项或选中它但为其指定一个修饰键(在下面的编辑框中)。在后一种情况下,只有当您按住该键时才会出现 javadoc 悬停。
I've got to say, though, that the inconvenience of not having Combined Handler makes this really not worth it in my opinion.
不过,我必须说,在我看来,没有联合处理程序的不便使得这真的不值得。
回答by VonC
You could go to
你可以去
Preferences / Java / Editor / Hover
and untick the "Combined Hover" option: no more popup.
并取消勾选“组合悬停”选项:不再弹出。
Then you would have:
那么你会有:
Shift+F2: open the external javadoc if javadoc archive or directory has been associated with your project (and if some javadoc has been generated)
Alt+Shift+Q, followed by J: open the javadoc view, with the same content than the popup previously seen on mouse hovering.
Shift+ F2:如果 javadoc 存档或目录已与您的项目相关联(并且已生成一些 javadoc),则打开外部 javadoc
Alt+ Shift+ Q,接着J:打开的Javadoc视图,使用相同的内容比以前看到的鼠标悬停弹出。
回答by Stragulus
In Eclipse 3.6 you can now specify a modifier key to be pressed down for the Combined Hover to be activated. This way, you can have the old behavior without the automatic popups. The automatic popups were driving me crazy, often obscuring something I was trying to read.
在 Eclipse 3.6 中,您现在可以指定要按下的修饰键以激活组合悬停。这样,您就可以拥有没有自动弹出窗口的旧行为。自动弹出窗口让我发疯,经常掩盖我试图阅读的内容。