mercredi 25 février 2015

A command line tool to format java code?



I know that several IDEs have built in facilities to format code on save. NetBeans and Eclipse do AFAIK. But, I'd like to use Emacs or IntelliJ or whatever is handy and then have a tool I can run at the command line on a file, or files I've changed, etc that format the code into a style the whole team would agree to. Also, the IDE isn't uniform across the team, and doesn't need to be, so I'm looking for a command line tool to format java code. Preferably one that is Language aware instead of a bunch of regular expressions. Something like Gofmt, but for java.




Aucun commentaire:

Enregistrer un commentaire