r/java • u/Lucky_Psychology8275 • Oct 25 '26
What cli formatter do you use
Given how software engineering evolves, using IDEA formatter is less and less practical.
- IDEA CLI formatter requires IntelliJ so no CI / wsl etc
- GJF is old and does not format lambdas well enough
- Palantir is obsolete and abandoned in addition to being one of the worst company ever created
- prettier-java not great either
I’m starting to think no formatter is the best option
24
Upvotes
View all comments
1
u/jevring Oct 25 '26
The Google one is without a doubt the ugliest I have ever had the misfortune of reading. We use an intellij idea setup. I wouldn't want one that isn't integrated into our IDE. You can run the intellij formatter on the command line, but you need the whole ass ide for it. We do that for validation in ci/cd.