如何 Ctrl+Shift+Space 快捷键在 Eclipse 上显示方法帮助?
在 Eclipse 中,当鼠标指针移到方法帮助提示上时会显示。我想像 Visual Studio 一样在 eclipse 上显示方法帮助。当我在光标位于方法括号内时按 Ctrl+Shift+Space 时,我想查看方法帮助作为提示。我该怎么做呢?我应该更改哪个快捷方式的设置?
PS:Netbeans IDE 完全按我想要的方式工作,但我想在 Eclipse 中做同样的事情。
In eclipse, when mouse pointer moves over on method help hint shows. I want to show method help on eclipse like Visual Studio. When I pressed Ctrl+Shift+Space when cursor inside method parenthesis, I want to see method help as hint. How can I do it? Which shortcut's setting should I change?
PS: Netbeans IDE completley works as I wanted, but I want to do same in eclipse.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 JavaDoc 视图(
View -> Show View -> JavaDoc
/Alt+Shift+Q,J
)来显示文本光标所在方法的 JavaDoc在里面。或者将鼠标光标放在方法名称上,JavaDoc 将显示为工具提示。F2
(显示工具提示说明)将为您提供问题更新中提到的 JavaDoc。Ctrl-Shift-Space
为您提供上下文信息(例如所有可能方法的列表),并且您可能不会因为新声明而丢失此信息。You can use the JavaDoc View (
View -> Show View -> JavaDoc
/Alt+Shift+Q,J
) to show the JavaDoc of the method your text cursor is inside. Or place the mouse cursor over the method name and the JavaDoc will be presented as tooltip.F2
(Show Tooltip decription) will give you the JavaDoc as mentioned in your question update.Ctrl-Shift-Space
gives you Context Information (e.g. list of all possible methods) and you probably won't lose this due to new declaration.一般而言>编辑>键看起来命令应该是“显示工具提示描述”,默认绑定到 F2 (与悬停工具提示效果相同)
In General > Editors > Keys look the command should be "Show tooltip description", which is binded to F2 as default (same effect as the hover tooltip)
文件->设置->编辑->一般
在其他部分中,您会发现 - “鼠标移动时显示快速文档”
只需勾选复选框即可在 500 毫秒内提供帮助(时间延迟可更改)
File -> Settings -> Editor -> General
In the other Section you will find - "Show quick doc on mouse move"
Just mark the checkbox to help in 500ms(Time delay is changable)