ForceWrap javadoc popup?

Answered

Is there an option in Idea to force-wrap text within JavaDoc popup? It seems that there is something like min-width after which there is no wrapping

 

IntelliJ IDEA 2020.1 (Ultimate Edition)
Build #IU-201.6668.121, built on April 8, 2020
Runtime version: 11.0.6+8-b765.25 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.4

6 comments
Comment actions Permalink

It would depend on the contents of the specific JavaDoc section.

Try it with Boolean and you'll see that min width would be less.

Looks like preformatted code sections are not wrapped by the HTML viewer.

0
Comment actions Permalink

It seems the min-width of the popup equals the longest pre-formatted code length.

Would it be possible to alter the behaviour so that the regular text would respect the width of the popup?

One pre-formatted line destroys the user experience...horizontal scrolling for each line is very annoying :(

0
Comment actions Permalink

Pavel Lobodinský is right - min-width is tied to <pre/> block width. Example shows this:

```java

/**
* The Classx class wraps Lorem Ipsum is simply dummy text of the printing and
* typesetting industry. Lorem Ipsum has been the industry's standard dummy
* text ever since the 1500s, when an unknown printer took a galley of type and
* scrambled it to make a type specimen book. It has survived not only five
* <pre>
* byte[] seed = random.generateSeed(20);</pre>
*/
class Classx {}

```

There is additional problem with it - pre block is indented to much (IMHO). What's more "implements" line isn't wrapped either

 

I'd like to suggest following:

* wrap all non-pre blocks ignoring pre block width

* decrease pre-block indentation

* wrap headers (implements, extends)

 

Should I submit this as a bug/feature request to your YouTrack?

0
Comment actions Permalink

Also, then the doc is inherited, the `Description copied from class:` causes a huge indentation.

0

Please sign in to leave a comment.