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 (Integrated Development Environment) 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.
|
|
You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) |
| http://mindprod.com/jgloss/beautifier.html | J:\mindprod\jgloss\beautifier.html | |
![]() | Please email your feedback for publication,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording,
broken/redirected link reports, suggestions to improve this page or comments to
Roedy Green :
| |
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.179.211] | |
| Feedback | You are visitor number 31,058. | |