我希望可用方法的弹出窗口在滚动到可用方法时显示方法描述。
(显然,只有当方法本身具有必要的注释和标记时,这才有效。)
/**
* 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() {
我希望它的行为像这样:
最佳答案
除了简单的完成查找之外,您还可以访问快速定义 View
。
所以,
CRTL
+SPACE
生成您在问题中显示的查找- 然后按
CRTL
+SHIFT
+SPACE
显示快速定义 View
,例如:
这显示了可用的方法及其文档。
关于eclipse - IntelliJ - 当代码弹出窗口出现时显示方法描述和注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46274143/