Java Glossary : beautifier

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : B words : beautifier.

beautifier
a program that tidies up Java source code to some standard format. Marc W.F. Meurrens maintains a list of code beautifiers and pretty-printers. I am pretty happy with Slickedit since it is integrated into the editor, where it is convenient to type quickly/sloppily and beautify frequently. I does not rigidly follow Sun's conventions, but it is quite close.

Be careful when reordering declarations to make it pretty. You can often disturb the order of static or instance initialisation and stop it working.

I have not yet found a beautifier that is suffiently anally-retentive about spaces that you never get spurious CVS deltas. You should be able to control how much space there should be before and after () [] ; + - = in various contexts, e.g. method call, cast, empty declaration, nested () depth, /* // etc.

Ideally a beautifier should work two ways:

  1. Inside your editor just a click away.
  2. As a standalone utility so you can batch beautify and routinely beautify before adding to CVS. You want spacing absolutely standard, no judgement at all.
Trita is unusual in that is will beautify Java, JSP, HTML, CSS, PHP, Javascript and even C#. It learns your preferred style by looking as a sample of your formatted code. $35.00 USD

Arachnophila by Paul Lutus ¤ Artistic Style ¤ CBVan ¤ coding standards ¤ Emacs ¤ Intellij Idea ¤ Jacobe ¤ Jalopy ¤ JEdit ¤ Jindent ¤ JPretty ¤ JStyle (part of Jedit has very fine space control) ¤ JXBeauty ¤ NetBeans ¤ PCGrasp ¤ Percolator ¤ pretty-printer ¤ Semantic Designs ¤ SlickEdit ¤ Trita ¤ VasJava2HTML


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 2262.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/beautifier.html J:\mindprod\jgloss\beautifier.html