2017-09-18 169 views
0

我希望可用方法的弹出窗口在滚动到它们时显示方法描述。IntelliJ - 显示代码弹出窗口出现时的方法描述和注释

enter image description here

(显然,这时候该方法本身具有必要的注释和标记才有效。)

/** 
* If a value is present in this {@code Optional}, returns the value, 
* otherwise throws {@code NoSuchElementException}. 
* 
* @return the non-null value held by this {@code Optional} 
* @throws NoSuchElementException if there is no value present 
* 
* @see Optional#isPresent() 
*/ 
public T get() { 

我希望它这样的表现:

enter image description here

+0

的可能的复制[如何看到的IntelliJ IDEA的JavaDoc?](https://stackoverflow.com/questions/11053144/how-to-see-javadoc-in-intellij-idea) – nullpointer

+0

我已经有了选择。不要做我在问什么。它只显示可用的方法 –

+0

添加了另一张图片 –

回答

0

除简单完成查找外,您还可以访问Quick Definition View

所以,

  • CRTL + SPACE产生你在你的问题表明,查找
  • 然后CRTL + SHIFT + SPACE展现Quick Definition View,例如:

enter image description here

这显示了ava可用方法及其文档。

+0

这是一个可怕的用户体验。它每次覆盖我的ide屏幕的90%。我需要在底部的一个小的描述,像我刚刚添加的第二张图片:)。 –

+0

@ glitch可能重复的https://stackoverflow.com/questions/11053144/how-to-see-javadoc-in-intellij-idea? – nullpointer