Community
Participate
Working Groups
Please add a new "formatter option" (for Java/Javascript) within "Line Wrapping->Wrapping Settings->Annotations with Arrays" For example, I have this: @JsonbPropertyOrder(value = {"id", "username", "email", "hobbies"}) And I want to line break all items within a value-property to have this: @JsonbPropertyOrder(value = { "id", "username", "email", "hobbies", })
This is controlled by the Wrapping settings -> Other expressions -> Array initializers. Did you not notice this or do you think it should be a separate option? Also, AFAIK Javascript is handled by a completely different component.
I think it should be definitly a separate option, because: Formatting annotations should be treated differently from the rest of the code. Only because I want to format the annotations, I do not want to format all other arrays in my code. Would be nice to create a seperate option (for example, "Wrapping settings -> Other expressions -> Array initializers in Annotations").