IntelliJ completes top-level annotations without wrapping embedded annotations

Enabling "Wrap always" will not work because it becomes:

@Annotation1 public @Annotation2 String something() { ... } 

And Do Not Finish becomes:

 @Annotation1 public @Annotation2 String something() { ... } 

"Wrap if long" and "Chop down if long":

 @Annotation1 public @Annotation2 String something() { ... } 

This is what I want:

 @Annotation1 public @Annotation2 String something() { ... } 

Other similar questions don't match the format I'm looking for, and tell me to select one of the options listed above that don't work for me.

Does anyone know how to make the formatter behave this way? Perhaps a plugin?

+5
source share

All Articles