在我的 Intellij IDEA Ultimate 2017.1 中,我发现两个类似的选项:
让我们本地化它们:
- 文件→设置→编辑器→常规→常规→显示有关鼠标移动的快速文档
我看到在查看内联文档 https://www.jetbrains.com/help/idea/2017.1/viewing-inline-documentation.html:
快速文档查找可帮助您快速获取任何符号的信息或仅获取方法签名信息,前提是该符号已提供适用格式的文档注释。
进而:
You can configure IntelliJ IDEA to automatically invoke the suggestions list, without having to call basic completion explicitly. To do this, in the main menu select File | Settings (or press Ctrl+Alt+S), on the left choose Editor | General | Code Completion, and select the Autopopup code completion option.
- 文件→设置→编辑器→常规→代码完成→自动弹出文档 (用于显式调用的完成).
中提到自动完成代码 https://www.jetbrains.com/help/idea/2017.1/auto-completing-code.html:
基本代码补全可帮助您补全可见范围内的类、方法、字段和关键字的名称。当您调用代码完成时,IntelliJ IDEA 会分析上下文并建议从当前插入符位置可访问的选项。
The first one shows on mouse move above the given text. The second one shows on Ctrl+Space as shown in Intellij IDEA show javadoc automatically https://stackoverflow.com/q/7934876/1983854.
However, I do not see the difference between them when working normally on my Python projects, for example if I define my own class Foo
and I either press Ctrl+Space or Ctrl+Q on the Foo
from f = Foo()
.
快速文档和自动弹出文档没有区别,它是使用不同方式调用的相同功能正如这个答案中所描述的 https://stackoverflow.com/a/11053374/104891.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)