Basically, I need different styles depending on the number of annotations, for example.
class Foo { @Autowire private MyService myService; @Autowire private MyOtherService service; ... }
but if I have more annotations, space is required
@Entity class Bar { @Id @NotNull @Column(...) private Long id; @NotNull @NotEmpty @Column(...) private String description; }
Is it possible to force IDEA to format Java for these two styles?
source share