Intellij IDEA中的快速文档和Autopopup文档有什么区别? [英] What is the difference between Quick documentation and Autopopup documentation in Intellij IDEA?

查看:732
本文介绍了Intellij IDEA中的快速文档和Autopopup文档有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Intellij IDEA Ultimate 2017.1中,我找到两个类似的选项:




  • 显示鼠标移动的快速文档

  • Autopopup文档



让我们将它们本地化:




  • 文件→设置→编辑器→常规→常规→显示鼠标移动的快速文档





我在



自动完成代码


基本代码完成可帮助您完成可见范围内的类,方法,字段和关键字的名称。当您调用代码完成时,IntelliJ IDEA会分析上下文并建议可从当前插入位置到达的选项。







第一个显示鼠标移动到给定文本之上。第二个显示在 Ctrl + Space 上,如 Intellij IDEA自动显示javadoc所示



但是,在我的Python项目中正常工作时,我看不出它们之间的区别,例如,如果我定义自己的类 Foo 我按 Ctrl + Space Ctrl + Q 来自 f = Foo() Foo

解决方案

快速文档和autopopup文档之间没有区别,它是使用不同方式调用的相同功能如本回答所述


In my Intellij IDEA Ultimate 2017.1 I find two similar options:

  • Show quick documentation on mouse move
  • Autopopup documentation

Let's localize them:

  • File → Settings → Editor → General → General → Show quick documentation on mouse move

I see in Viewing Inline Documentation:

Quick Documentation Lookup helps you get quick information for any symbol or just method signature information, provided that this symbol has been supplied with documentation comments in the applicable format.

and then:

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.

  • File → Settings → Editor → General → Code Completion → Autopopup documentation (for explicitly invoked completion).

Mentioned in Auto-Completing Code:

Basic code completion helps you complete names of classes, methods, fields, and keywords within the visibility scope. When you invoke code completion, IntelliJ IDEA analyses the context and suggests the choices that are reachable from the current caret position.


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.

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().

解决方案

There is no difference between the quick documentation and autopopup documentation, it's the same feature invoked using different ways as described in this answer.

这篇关于Intellij IDEA中的快速文档和Autopopup文档有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆