Mocoso Joel Chippindale's occasional blog.

25 September 2008

Code Beautifier Textmate Bundle

Textmate's indent functionality does a passable job of formatting your code BUT there is a great deal of room for improvement.

Inspired by the Paul Lutus's ruby beautifier script and Tim Burks's post on making it into a Textmate bundle I've put together a Code Beautifier Textmate bundle

It only supports Ruby at present but does improve upon Textmate's indent functionality, in particular it is better at indenting multiline statements and cleans up white space.

It's all hosted on Github so if you want to make improvements then please fork away.


Run this:

cd ~/Library/Application\ Support/TextMate/Bundles
git clone git:// Code\ Beautifier.tmbundle

Then select 'Bundles > Bundle Editor > Reload Bundles' from Textmate's menus

Updated on 21 May 2009

Changed the URL of the repository on GitHub to to fix a typo in the name (oops).