在Eclipse中,当鼠标悬停在一个方法、变量等上时,会显示一个带有相应JavaDocs的工具提示。IntelliJ中有这样的特性吗?
当前回答
对于Intellij 15,使用文件>设置>编辑器>常规选项显示鼠标移动时的快速文档。
你也可以通过在搜索框中输入“quick”或类似的东西来到达那里:
其他回答
Android Studio(至少2.3.3)用户注意,因为这个页面出现在我的谷歌搜索“Android Studio hover javadoc”,Android Studio是基于Intellij:
参见文件->设置->编辑器->通用:“显示鼠标移动的快速文档”, 而不是文件->设置->编辑器->通用->代码完成 用于显式调用补全的(ms)自动操作文档 以及“(ms)自动操作”,之前已经讨论过。
对于Intellij 15,使用文件>设置>编辑器>常规选项显示鼠标移动时的快速文档。
你也可以通过在搜索框中输入“quick”或类似的东西来到达那里:
根据ADNow的说法。关于麦金塔:
右键单击IntelliJ IDEA 12 单击Show Package Contents菜单选项 打开bin文件夹 打开idea.properties 加一行: auto.show.quick.doc = true
从IntelliJ Ultimate 2018.1.5,也就是IntelliJ IDEA 2018.1.5,到2019.3,在File -> Preferences下实际上有两个选项:
In Editor > General > Other (section) > Show quick documentation on mouse move - delay 500 ms Select this check box to show quick documentation for the symbol at caret. The quick documentation pop-up window appears after the specified delay. In Editor > General > Code Completion (sub-item) > Auto-display documentation in 1000 ms Select this check box to have IntelliJ IDEA automatically show a pop-up window with the documentation for the class, method, or field currently highlighted in the lookup list. If this check box is not selected, use Ctrl+Q to show quick documentation for the element at caret. Quick documentation window will automatically pop up with the specified delay in those cases only, when code completion has been invoked explicitly. For the automatic code completion list, documentation window will only show up on pressing Ctrl+Q.
在12.1中可以实现。
找到的想法。安装IDE的BIN文件夹中的属性,例如C:\Program Files (x86)\JetBrains\IntelliJ\bin
在文件末尾添加新行:
auto.show.quick.doc=true
启动IDEA,将鼠标悬停在某物上:
推荐文章
- 在流中使用Java 8 foreach循环移动到下一项
- 访问限制:'Application'类型不是API(必需库rt.jar的限制)
- 用Java计算两个日期之间的天数
- 如何配置slf4j-simple
- 在Jar文件中运行类
- 带参数的可运行?
- 我如何得到一个字符串的前n个字符而不检查大小或出界?
- 我可以在Java中设置enum起始值吗?
- Java中的回调函数
- c#和Java中的泛型有什么不同?和模板在c++ ?
- 在Java中,流相对于循环的优势是什么?
- Jersey在未找到InjectionManagerFactory时停止工作
- 在Java流是peek真的只是调试?
- Recyclerview不调用onCreateViewHolder
- 将JSON字符串转换为HashMap