google-java-format

Reformats Java source code to comply with Google Java Style

brewmacoslinux
Try with needOr install directly
Source

About

Reformats Java source code to comply with Google Java Style

Commands

google-java-format

Examples

Format a single Java file in place$ google-java-format -i MyFile.java
Format multiple Java files and display the diff$ google-java-format -d src/main/java/*.java
Format a file and output to stdout without modifying$ google-java-format MyFile.java