本文翻譯自:IntelliJ show JavaDocs tooltip on mouse over
In Eclipse, when hovering over a method, variable, etc. a tooltip is displayed with the corresponding JavaDocs. 在Eclipse中,當將鼠標懸停在方法,變量等上時,將顯示帶有相應JavaDoc的工具提示。 Is there such a feature in IntelliJ? IntelliJ中有這樣的功能嗎?
#1樓
參考:https://stackoom.com/question/Rkzs/IntelliJ在鼠標懸停時顯示JavaDocs工具提示
#2樓
After doing CTRL + Q , you can 做完CTRL + Q之後 ,你可以
- Pin the tooltip (top right corner) 固定工具提示(右上角)
- Check Docked Mode (under gear in top right after pinning) 檢查停靠模式 (固定後在右上角的齒輪下)
- Size as desired 尺寸符合要求
- Click icon for Auto show documentation for selected item 單擊所選項目的自動顯示文檔的圖標
Then when you move your cursor, the documentation will appear in this box. 然後當您移動光標時,文檔將顯示在此框中。 It costs you a little screen real estate, but I find it's worth it. 它花了你一個小屏幕房地產,但我發現它是值得的。
I'd post a screenshot but SO won't let me post images. 我發佈了一個截圖,但不會讓我發佈圖片。
#3樓
It is possible in 12.1. 有可能在12.1。
Find idea.properties in the BIN folder inside of wherever your IDE is installed, eg C:\\Program Files (x86)\\JetBrains\\IntelliJ\\bin 在安裝IDE的任何地方的BIN文件夾中找到idea.properties ,例如C:\\ Program Files(x86)\\ JetBrains \\ IntelliJ \\ bin
Add a new line to the end of that file: 在該文件的末尾添加一個新行:
auto.show.quick.doc=true
Start IDEA and just hover your mouse over something: 啓動IDEA,只需將鼠標懸停在某些內容上:
#4樓
Adding on to what ADNow said. 再加上ADNow所說的話。 On the Macintosh: 在Macintosh上:
- Right click on IntelliJ IDEA 12 右鍵單擊IntelliJ IDEA 12
- Click on the Show Package Contents menu option 單擊“ 顯示包內容”菜單選項
- Open the bin folder 打開bin文件夾
- Open idea.properties 打開idea.properties
Add the line: 添加行:
auto.show.quick.doc=true auto.show.quick.doc =真
#5樓
IDEA has " find action ": IDEA“ 尋找行動 ”:
Open "Help" menu, type "doc", move cursor to " Quick Documentation " it will be highlighted. 打開“幫助”菜單,鍵入“doc”,將光標移動到“ 快速文檔 ”,它將突出顯示。
Also "find action" can be called from hot key (you can find it in settings->hotkeys) 也可以從熱鍵調用“查找操作”(您可以在設置 - >熱鍵中找到它)
#6樓
On my IntelliJ U on Mac I need to point with cursor on some method, variable etc. and press [cntrl] or [cmd] key. 在Mac上的IntelliJ U上,我需要將光標指向某個方法,變量等,然後按[cntrl]或[cmd]鍵。 Then click on the link inside popup window which appeared to see JavaDocs 然後單擊彈出窗口中看到JavaDocs的鏈接