xen*_*ide 6 java code-formatting intellij-idea
基本上我想要不同的样式取决于注释计数,例如
class Foo {
@Autowire private MyService myService;
@Autowire private MyOtherService service;
...
}
Run Code Online (Sandbox Code Playgroud)
但如果我有更多的注释需要一个空格
@Entity
class Bar {
@Id
@NotNull
@Column(...)
private Long id;
@NotNull
@NotEmpty
@Column(...)
private String description;
}
Run Code Online (Sandbox Code Playgroud)
我可以强制IDEA为这两种风格格式化Java吗?
| 归档时间: |
|
| 查看次数: |
571 次 |
| 最近记录: |