Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the Eclipse Java formatter be used stand-alone

Is there a way to use the formatter that comes with eclipse, outside of eclipse? I would like to format some java files using my formatter.xml file that I have configured using eclipse. Does anyone have any code examples that would allow me to do this? I would also like to use this standalone, so the specific jars that are used would be nice.

like image 237
Milhous Avatar asked Dec 21 '08 04:12

Milhous


People also ask

Does Eclipse have auto format?

Eclipse has a wonderful feature that formats according to your coding standards.


1 Answers

Apparently you can directly invoke Eclipse's code formatter from the command line.

like image 64
dancavallaro Avatar answered Sep 25 '22 09:09

dancavallaro