2017-09-18 191 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