Reformats Java source code to comply with Google Java Style. (by google)

Google-java-format Alternatives

Similar projects and alternatives to google-java-format

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better google-java-format alternative or higher similarity.

google-java-format reviews and mentions

Posts with mentions or reviews of google-java-format. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-12.
  • How to automatically format Java code similar to Rust (rustfmt)?
    2 projects | /r/rust | 12 Apr 2023
    The code block you pasted is not at all what the Google Java Format utility would do. Don't use VSCode to handle IntelliJ's job :P
  • After a few attempts I'm officially a programmer :^)
    2 projects | /r/ProgrammerHumor | 5 Dec 2022
    Follow a style guide, doesn’t really matter which you choose, you’ll thank me later. This one will work automatically
  • Coding standards
    2 projects | /r/cscareerquestions | 25 Sep 2022
    I cloned a Maven plug-in that enforces Google code style guidelines (modifying a few things, like nesting depth):
  • Creating custom formatter for Java
    3 projects | /r/javahelp | 15 May 2022
    I spent most of my development career writing simple CRUD applications, recently I read a fascinating article: It looks like a nice challenge to try creating such a tool. For sure I need first to understand how to build AST etc. I could reuse existing solutions like, or eclipse fmt, but I would like to understand the whole process, to be able to debug all cases.
  • I am about to start a war
    2 projects | /r/ProgrammerHumor | 9 Apr 2022
  • Zero Config Code Formatter?
    11 projects | /r/java | 9 Mar 2022
    Eventually it was clear that google-java-format was pulling ahead, and it was clear that the primary reason for that was The Rectangle Rule -- a principle I'd vomited forth one day that somehow had gone the distance. Structure-revealing code turns out to be readable code, and our users kept preferring it.
    11 projects | /r/java | 9 Mar 2022
    The Google Java Formatter which can be included as Plugin in IntelliJ can also be used as Standalone Jar Also they are giving there best to have it idempotent as much as possible
    11 projects | /r/java | 9 Mar 2022
  • Black, the Uncompromising (Python) Code Formatter Is Stable
    12 projects | | 29 Jan 2022
  • New developmer joined team and has flagged everything we do
    3 projects | /r/cscareerquestions | 2 Oct 2021
    3) When in doubt, adopt Google's style guides. The reason I suggest this isn't that Google's is perfect, but that it's a well-accepted standard with a ton of linter/formatter/etc tooling around it. Here are some formatter/verifier plugins for various IDEs and Maven/etc. For Javascript, Google has a style guide too, but the tooling around Airbnb's one that's mostly the same is a bit better. I should note that all of these configs allow overrides/exceptions, so...if you feel strongly about tabs over spaces and so do the rest of the team, you can extend the config to do that. Do yourselves a favor though - when you adopt a style guide and format the code with it, make sure you do that as its own PR rather than mixed in with functionality. Otherwise you won't know what's changed.
  • A note from our sponsor - WorkOS | 17 Apr 2024
    The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →


Basic google-java-format repo stats
2 days ago
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives