Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java doc overlap the error message in IntelliJ IDEA

Tags:

I am using IntelliJ IDEA (2016.3) linux version for Java development. As shown in the image below when the mouse pointer hover over an error line, the error message is overlapped by the javadoc making it harder to read the given error message. How to fix this?. Thanks in advanceenter image description here

like image 896
Kasun Siyambalapitiya Avatar asked Mar 07 '17 09:03

Kasun Siyambalapitiya


People also ask

How do I enable Java documentation in IntelliJ?

From the main menu, select Tools | Generate JavaDoc. In the dialog that opens, select a scope — a set of files or directories for which you want to generate the reference, and set the output directory where the generated documentation will be placed.

How do I open a javadoc file?

To locate the Javadoc, browse to your User folder (on Windows 7 this is C:\Users\*Username*), then browse to sunspotfrcsdk/doc/javadoc. Double click on the index. html file to open it in your default webbrowser.

How do I create a method level comment in IntelliJ?

Create JSDoc commentsPosition the caret before the declaration of the method/function or field to document, type the opening block comment /** , and press Enter . IntelliJ IDEA generates a JSDoc comment with a list of parameters ( @param ) and return values ( @returns ), where applicable.

What is a javadoc in Java?

Javadoc (originally cased JavaDoc) is a documentation generator created by Sun Microsystems for the Java language (now owned by Oracle Corporation) for generating API documentation in HTML format from Java source code.


2 Answers

I use 2017.1.3 EAP on Win10 and it is the same. Seems like a bug. There are several workarounds:

  1. Set time delay for documentation popup to a higher value. This should give you more time to read the error message. (Settings -> Editor -> General -> Show quick documentation on mouse move).

  2. Set a cursor at the code with the error and you will see a duplicated error message in the status bar.

Error message

like image 75
Alexander Murza Avatar answered Oct 03 '22 13:10

Alexander Murza


You can also have the documentation in a fixed spot by clicking the pin in the top right corner of the pop-up. The window will then always be there, but it does update on mouse-overs and it is not over the warning- and errormessages anymore.

like image 27
Leon Stemerdink Avatar answered Oct 03 '22 14:10

Leon Stemerdink