IntelliJ在鼠标悬停时显示JavaDocs工具提示

本文翻译自: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之后 ,你可以

  1. Pin the tooltip (top right corner) 固定工具提示(右上角)
  2. Check Docked Mode (under gear in top right after pinning) 检查停靠模式 (固定后在右上角的齿轮下)
  3. Size as desired 尺寸符合要求
  4. 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上:

  1. Right click on IntelliJ IDEA 12 右键单击IntelliJ IDEA 12
  2. Click on the Show Package Contents menu option 单击“ 显示包内容”菜单选项
  3. Open the bin folder 打开bin文件夹
  4. Open idea.properties 打开idea.properties
  5. 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的链接

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章