ChatGPT解决这个技术问题 Extra ChatGPT

Android Studio: Javadoc is empty on hover

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.

https://i.stack.imgur.com/nEVok.png

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

there are a lot of things other than 'Gradle Build Running' that annoy and frustrate you a lot

D
Doge

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.


Can't believe how this happens for default. Very silly fix, but thanks!
Thanks a lot. Android Studio is making me crazy in so many ways.
I think we all do agree that Android Studio totally sucks for that kind of details. I miss Eclipse so much ! :(
Did you ever figure out how to avoid it getting constantly resized? This is a general problem with intelliJ it seems.
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.
a
ashishduh

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.


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 :)
Why is this not on by default?! I was almost ready to go back to eclipse! :P
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!
Why are they hesitating to make this a default behavior?
On a Mac this is under Preferences > Editor > General
R
Rafi Kamal

Android Studio 1.2.2

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

https://i.stack.imgur.com/r1m0L.png

Android Studio 1.0

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

https://i.stack.imgur.com/htu9U.png


Can't belive this is still needed on AS 1.5. Thank you
I had the same prob. I don't know why this isn't the installed default!
P
Padma Kumar

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

https://i.stack.imgur.com/nVbgs.png

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

https://i.stack.imgur.com/h3jjB.png


Yes, the documentation is installed. It also shows up correctly when I use my 'quick documentation' hotkey
I do get the documentation popup but it is not syntax highlighted, any idea why it's not syntax highlighted? stackoverflow.com/q/23086511/238768