如何配置一尘不染的 google 格式化程序来格式化大括号
How to configure spotless google formatter to format braces
如何配置一尘不染的 google 格式化程序以将大括号格式化为两行而不是一行
- void contextLoads() {}
+ void contextLoads() {
+ }
你不能。来自 google-java-format
的 README:
Note: There is no configurability as to the formatter's algorithm for formatting. This is a deliberate design decision to unify our code formatting on a single format.
如何配置一尘不染的 google 格式化程序以将大括号格式化为两行而不是一行
- void contextLoads() {}
+ void contextLoads() {
+ }
你不能。来自 google-java-format
的 README:
Note: There is no configurability as to the formatter's algorithm for formatting. This is a deliberate design decision to unify our code formatting on a single format.