18

I'm using IntelliJ IDEA 9, Is there a way to configure IDEA so that when I pause my mouse over a method, IDEA pulls up the javadoc (the same thing as CTRL+Q does)?

Alexander Vogt
  • 17,879
  • 13
  • 52
  • 68
Ali
  • 12,354
  • 9
  • 54
  • 83
  • 1
    It seems this feature may be going into IntelliJ IDEA 12.1 or 12.1.x, finally.... http://youtrack.jetbrains.com/issue/IDEA-66333#comment=27-462576 – codinguser Mar 27 '13 at 10:27
  • IntelliJ 2018.2.4 (Community Edition): `Preferences > Editor > General: Other (subsection) > Show quick documentation on mouse move` – Danny Bullis Sep 25 '18 at 16:34

5 Answers5

48

Just to update, IntelliJ 13.0 is now released and has this feature.

Location in 13.0:

Preferences -> Editor -> Other -> "Show quick doc on mouse move"

Location in 13.1 (and later):

File -> Settings -> Editor -> General -> "Other" section -> "Show quick documentation on mouse move"

You can even set the hover time (in ms) and once the doc pane opens, you can Pin it to one of the sides and it becomes one of the windows, like Console or Terminal. This is very handy, as you just over over and look at the pinned window.

Clint Eastwood
  • 4,995
  • 3
  • 31
  • 27
fantom
  • 852
  • 2
  • 11
  • 25
  • 1
    this is the correct answer as of now, thank you very much! – avalancha Jan 28 '14 at 16:00
  • 6
    In my IntelliJ 13.1 Ultimate, it's at File -> Settings -> Editor, there is a check box called "show quick doc on mouse move" – user227353 Aug 12 '14 at 19:37
  • 3
    In my IntelliJ IDEA 2016.1.2, it's at Preferences -> Editor -> General -> Other (subsection, not tab) -> "Show quick documentation on mouse move" – Logan Mar 03 '18 at 01:39
10

There is no such feature right now, feel free to vote for the existing enhancement request.

As stated in the comments, one can write a plug-in that will add this functionality.

Edit
Since this is the first hit on Google about this I would like to add that Edolsa's answer here is the correct solution as of January 2014.

Community
  • 1
  • 1
CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • I guess the enhancements would go into v10 ... – Chris Kimpton Oct 12 '11 at 11:43
  • @Chris, IDEA 10 is already current version with no new features planned, IDEA 11 will be released in a couple of months from now and this feature is not in the roadmap. What is your guess based on? – CrazyCoder Oct 12 '11 at 11:47
  • Lol - good point, bad guess- I didn't see an 11 EAP , so I went for 10 :) – Chris Kimpton Oct 12 '11 at 14:46
  • Right... well, the project I'm on for which I have to use IDEA will probably not last *that* long and I can go back to Eclipse after that. Thanks, I'll submit the feature request though. Does the enhancement request work like a voting system that features with the most votes get implemented? – Ali Oct 12 '11 at 18:54
  • Requests that have more votes have more chances to be addressed faster. – CrazyCoder Oct 13 '11 at 03:07
  • @CrazyCoder Is there any option to make mouse hover behave like i pressed ctrl+p ? ( show method signature ( without holding ctrl) ? – Royi Namir Nov 09 '14 at 07:51
7

There is a setting under Preferences -> Editor -> Show quick doc on mouse move, but I've found it's completely unusable. It shows the quick doc for all variables so when you're hovering over to find out what a variable's value is the quick doc blocks it. Also most of the time the doc is collapsed and it's a pain to get to the right hand corner without it disappearing to expand it. Needs work, doesn't work nearly as well as it did in Eclipse.

odiggity
  • 4,117
  • 7
  • 34
  • 41
  • This comment was made a little less than 2 years ago, and this stuff still continues to happen. It's these little things that make my hate the Android team for switching to Android Studio more reasonable as time goes on. – Andres S Apr 24 '15 at 09:16
  • I'm noticing the documentation is collapsed on hover too. The hover window shows up, but only shows the package. If i "Pin" that hover window, then I can see the documentation. Anyone know how to fix this? – eipark Sep 23 '16 at 14:50
6

I'm migrating to Android Studio. I miss this Eclipse feature too.

I created a new shourtcut for Quick documentation command: Alt + Left click

(Preferences -> Keymap -> Quick documentation)

It seems comfortable and gets the job done.

Ivan Morgillo
  • 2,837
  • 4
  • 30
  • 46
2

Add to idea.properties the following line and restart Intellij

auto.show.quick.doc=true
Michal Zmuda
  • 5,381
  • 3
  • 43
  • 39