🚧 Work in Progress! 🚧
A Prettier plugin must first parse the source code of the target language into an Abstract Syntax Tree and then print out the AST in a "pretty" style.
Prettier-Java uses a Java-Parser implemented in JavaScript using the Chevrotain Parser Building Toolkit for JavaScript. What this means is that unlike many other prettier plugins, prettier-java has no additional runtime pre-requisites, It could even be used inside a browser.
- Re-architecture and re-write in progress.
- pre-alpha version (previous architecture) released.
yarn add --dev --exact prettier prettier-plugin-javaprettier --write "**/*.java"Contributions are very welcome. See the contribution guide to get started.
