google-java-format
A command-line program that reformats Java source code to follow Google Java Style.
Open source (Apache-2.0)By Google
Compare google-java-format with another product
1 more way to get google-java-format
Homebrew
brew install google-java-format
Alternatives
See all alternativesAbout google-java-format
google-java-format rewrites Java source files so they comply with Google Java Style. It is run from the command line as a Java archive and uses the JDK compiler module to parse source code, so formatting is based on the real syntax tree.
Plugins for IntelliJ IDEA and Eclipse are developed in the same repository. It suits Java teams that want consistent formatting without debating style settings, whether run by hand, in an editor or in continuous integration.
Strengths
- Fixed Google Java Style with no configuration to argue over
- IntelliJ IDEA and Eclipse plugins
- Parses code with the JDK compiler
Limitations
- Requires a Java runtime
- Style is not configurable beyond Google Java Style
Details
- Pricing
- FreeFree and open source under the Apache 2.0 licence.
- License
- Apache-2.0
- Developer
- Platforms
- Windows, Command line
- How it runs
- Downloadable app
- Account
- Not required
- Works offline
- Yes
- Best suited for
- Java teams that want automatic, consistent code formatting
- Categories
- Developer tools
- Last verified
- Added