Ideally a beautifier should work two ways:
A beautifier does not have to understand the full syntax of Java and it also has to handle code with syntax errors. This makes it somewhat simpler than a full parser. In other words, to get the beautifier exactly the way you want, you may have to write it yourself.
Any modern IDE will beautify code, e.g. Eclipse, Netbeans or IntelliJ Idea. I use Idea, which has two highly configurable beautifier plugins called Rearranger and code Formatter. For tiny projects I use SlickEdit since it is integrated into the editor, where it is convenient to type quickly/sloppily then beautify frequently.
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.16] | The information on this page is for non-military use only. | ||
| You are visitor number 15,647. | Military use includes use by defence contractors. | ||
| You can get a fresh copy of this page from: | or possibly from your local J: drive (Java virtual drive/Mindprod website mirror) | ||
| http://mindprod.com/jgloss/beautifier.html | J:\mindprod\jgloss\beautifier.html | ||