google / google-java-format

Reformats Java source code to comply with Google Java Style.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to pass in Google Style file?

tommy0831 opened this issue · comments

We modified the Google Style file. How can we tell google-java-format to use the new file when running from command line?

java -jar lib/google-java-format-1.7-all-deps.jar .....

I don't believe g-j-f uses a style file; that might be for another formatter.

There are Google Style configurations for other tools, e.g. checkstyle, Eclipse, IntelliJ, maybe you encountered one of those?

As Louis said, g-j-f's style is not configurable, it follows Google Style out of the box.