views:

125

answers:

2

Is there a Java-based program(jar) that can format java code(indenting/spacing). If it would be configurable that would be great.

+2  A: 

You bet: JIndent.

Charlie Martin
+1  A: 

CheckStyle is another and FREE. CheckStyle:Indentation.

Adeel Ansari
Can you give a specific example of using this tool?
Milhous
Once I have used this as a Netbeans plugin. There are plugins available for Eclipse, IntelliJ, Netbeans, JBuilder, JEdit and Emacs JDE. The plugin I used before is http://www.sickboy.cz/checkstyle/screenshots.html
Adeel Ansari