Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何配置一尘不染的谷歌格式化程序以两行而不是单行格式化大括号
- void contextLoads() {} + void contextLoads() { + }
你不能。来自google-java-format的自述文件:
google-java-format
注意:格式化程序的格式化算法没有可配置性。这是一个深思熟虑的设计决定,旨在将我们的代码格式统一为单一格式。