When the fields have no annotation I want to keep them together
public class MyPojo {
public String a;
public String b;
}
but if a field is annotated I want a blank line above the annotation
public class MyPojo {
@JsonProperty("a")
public String a;
@JsonProperty("b")
public String b;
}
is there a configuration of settings in IntelliJ that would give me this behavior? my current relevant settings are below:
- Preferences
- Editor
- Code Style
- Java
- Wrapping and Braces
- Field annotations: Wrap always
- Do not wrap after single annotation: unchecked
- Field annotations: Wrap always
- Blank Lines
- Keep Maximum Blank Lines
- In declarations: 1
- Minimum Blank Lines
- Around field in interface: 0
- Around field: 0
- Keep Maximum Blank Lines
- Wrapping and Braces
- Java
- Code Style
- Editor