163

I have moved from Eclipse to Android Studio recently, and am liking it. However, I miss the Javadoc on hover feature from Eclipse.

I followed the instructions here to add the functionality, however, my hovers contain no Javadoc. If I use my documentation shortcut Ctrl + Shift + Space it will show the documentation correctly, however, I really want it to come up in the Tooltip.

Below is a screenshot of what I see. Clearly, there should be a Javadoc on this method.

enter image description here

I see this on all methods/variables. Any help is appreciated.

0xCursor
  • 2,242
  • 4
  • 15
  • 33
Doge
  • 6,553
  • 5
  • 24
  • 25

4 Answers4

247

Turns out the docs hover page was simply resized to be very short. Carefully moving the mouse down to the bottom of the hover page allowed me to resize it.

Even after resizing it though, I still see it return to it's tiny size quite often... I'm glad I have my docs back, even if it does mean dealing with this annoyance.

Doge
  • 6,553
  • 5
  • 24
  • 25
  • 43
    Thanks a lot. Android Studio is making me crazy in so many ways. –  Aug 26 '14 at 08:26
  • Now that I used your tip, the stupid hover over also "documents" auto replaced resources and thus hides the R.id. values... :( I want JavaDoc on mouse over, but I do NOT want to have this other nice feature destroyed... *sigh* – Zordid Nov 05 '14 at 16:43
  • 24
    I think we **all** do agree that Android Studio totally **sucks** for that kind of details. I miss Eclipse so much ! :( – Orabîg Mar 04 '15 at 08:58
  • 2
    Did you ever figure out how to avoid it getting constantly resized? This is a general problem with intelliJ it seems. – habitats Mar 09 '15 at 09:59
  • 1
    I've gone through a few installs of Studio at this point, this bug has stopped appearing for me. Maybe you can try a fresh install too, but I can't guarantee anything. – Doge Mar 10 '15 at 00:05
  • 1
    Brilliant, that is the issue. I was like WTH I checked that option "mouse hover" but still no docs and when I entered the class I found the docs so where is it. RESIZING bug in Android Studio – Amt87 Nov 01 '15 at 07:36
  • 1
    Still experiencing this (2.0)... Why would it default to such a small size... They should include a way to set the default size... – Sakiboy Apr 08 '16 at 04:40
  • I'm using Intellij IDEA 15 Ultimate and this ultimately solved the same problem I had. Thanks! – Matt Vukas May 03 '16 at 20:11
  • I really do not miss Eclipse. JetBrains IDEs are so nice (my impression after working about 2 months with Android Studio and also PyCharm). The only thing: On Windows it was incredibly laggy even after increasing the allocated heap size. But on Ubuntu 14 it works like a charm ;) – ProgrammingIsAwsome Jul 08 '16 at 18:17
  • Thanks! Can believe it still persists 3 years later! – FlySoFast Jul 27 '16 at 06:29
  • I really think Google threw the baby out with the bath water with Android Studio. I'll admit ADT on eclipse wasn't perfect but I'd rather they had just improved the Eclipse platform rather than move to what seem to be like an IDE that does too much hand holding and contains a lot of bloat. The default settings in AS just blow my mind. Spell checking of variableNames why?? – David Jan 26 '18 at 05:24
128

You don't need to edit the idea.properties file, just go to File -> Settings -> Editor -> General, then check "Show quick doc on mouse move" in the right pane.

ashishduh
  • 6,629
  • 3
  • 30
  • 35
  • This works perfectly. When I first tried to mouse-over after enabling this setting, the popup window was shorter than I wanted, so I grabbed the corner of it and expanded it -- and guess what?! So far it remembers the size I expanded it to on subsequent mouse-overs! I even closed Android Studio and restarted it, and my popup window size persisted perfectly :) – LargeGlasses Jan 27 '15 at 23:20
  • 4
    Why is this not on by default?! I was almost ready to go back to eclipse! :P – bwoogie Jan 30 '15 at 16:29
  • 1
    This hover works but can conflict with showing an error on the same line and can be difficult to get get the desired one open. Eclipse did the hovering javadoc and errors so much better! – Gary Bak Aug 07 '15 at 18:47
  • 1
    Why are they hesitating to make this a default behavior? – mr5 Feb 04 '16 at 05:24
  • 1
    On a Mac this is under Preferences > Editor > General – Kevin Hooke Nov 28 '16 at 01:07
53

Android Studio 1.2.2

File > Settings > Editor > General > Show quick doc on mouse move.

screenshot

Android Studio 1.0

File > Settings > IDE Settings Editor > Show quick doc on mouse move.

screenshot

Rafi Kamal
  • 4,522
  • 8
  • 36
  • 50
16

Did U downloaded Documentation for Android SDK from Android SDK Manager?

enter image description here

If you installed the Documentation you will get like this when you press Ctrl + Shift + Space

enter image description here

Padma Kumar
  • 19,893
  • 17
  • 73
  • 130
  • Yes, the documentation is installed. It also shows up correctly when I use my 'quick documentation' hotkey – Doge May 29 '13 at 17:22
  • I do get the documentation popup but it is not syntax highlighted, any idea why it's not syntax highlighted? http://stackoverflow.com/q/23086511/238768 – kpsfoo Apr 15 '14 at 14:40