Skip to content
Prettier Java Plugin
Branch: master
Clone or download
Shaolans and bd82 fix imports accept double semi-colon (#158)
* fix imports accept empty statements in between

* Moving comments and adding link to the discussion for semicolons in between imports
Latest commit d27e6cd Mar 15, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages fix imports accept double semi-colon (#158) Mar 15, 2019
scripts Use colons in the names of npm scripts "sub" tasks. Jan 11, 2019
.gitignore Mono repo restructure (#91) Nov 9, 2018
.travis.yml Remove testing on node.js 6 Feb 1, 2019 Fix COC formatting. Jan 15, 2019
NOTICE Links to the repos in README (#157) Mar 13, 2019
lerna.json v0.2.0 Jan 11, 2019
package.json Update format task name. Jan 11, 2019

🚧 Work in Progress! 🚧

Build Status

Prettier Java

Prettier Banner

How it works

A Prettier plugin must first parse the source code of the target language into a traversable data structure (Usually an Abstract Syntax Tree) and then print out that data structure 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 (e.g: Python executable). It could even be used inside a browser.


  • Parser package alpha version done.
  • Now Investigating the re-printer (actually prettier-java package)

Road map to Alpha


Contributions are very welcome. See the contribution guide to get started. And the Help Wanted issues.


Special thanks to @thorbenvh8 for creating the original prettier-java plugin and the associated Java Parser implemented in JavaScript.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.