Hacker News new | ask | show | jobs
by davnicwil 2275 days ago
I'm very happy using this, coming from prettier with JS/VSCode and looking for a similar dev experience in Java/Intellij - it has an IntelliJ plugin that works well. Last time I looked I couldn't find any good IntelliJ plugins for the Java implementation of prettier which was a dealbreaker - I need the format on save. Anyway, this is a great tool, just works.

Only couple of issues it has is no 'ignore formatting for this piece of code' feature and it occasionally formats comments oddly (i.e. enough to make them unreadable) in certain edge cases like in ternary expressions, so you have to manually edit comments from time to time, but this hardly ever comes up.

1 comments

> I need the format on save

Check out Preferences -> Tools -> File Watchers.

Great shout! Didn't know about this feature but this solves the problem elegantly. Will give it a try.