Java code formatter Annotations on a single line

Answered
I want to disable the wrapping of Annotations so I don't want it like this


@Test public void


but

@Test
public void
4 comments

Annotation wrapping can be controlled here:

0

Thanks, I was all ready trying different combinations but didn't get the right result. Also tried the option "Do not wrap after single annotation"

 

0

Please add this Feature!

Currently it is impossible - at least for class and method annotations - to have ONE annotation per line, and a new line befor the method header begins!

We want to be able to configure the formatter to chop down long lines with annotations, but still maintain the style, so that something like

```

@Override

public int hashCode()

```

and 

```

@Configuration

public class SomeConfiguration {

```

0

Please sign in to leave a comment.