Creating custom formatter for Java

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Sonar - Write Clean Java Code. Always.
  • InfluxDB - Access the most powerful time series database as a service
  • SaaSHub - Software Alternatives and Reviews
  • google-java-format

    Reformats Java source code to comply with Google Java Style.

    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.

  • grammars-v4

    Grammars written for ANTLR v4; expectation that the grammars are free of actions.

    Initially, I was thinking about learning ANT and using it, but I see that they provided grammars for: java8 and java9

  • Sonar

    Write Clean Java Code. Always.. Sonar helps you commit clean code every time. With over 600 unique rules to find Java bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • JDK

    JDK main-line development

    Check out the source code for JavaDoc to see how JavaDoc does AST generation and processing, since uses the AST to generate the HTML documentation.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts