code-beautifier.tmbundle

An abandoned Textmate bundle for indenting code

  • Owner: mocoso/code-beautifier.tmbundle
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Code Beautifier Textmate Bundle

Warning: I no longer use Textmate and so this is effectively abandonware

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

Code Beautifier 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.

Installation

If you have git installed your machine then run this:

cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/mocoso/code-beautifier.tmbundle.git Code\ Beautifier.tmbundle

Otherwise download the zip or tarball and unpack it in ~/Library/Application\ Support/TextMate/Bundles.

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

KNOWN ISSUES

  • Does recognize strings with custom delimiters
  • Does not handle multiline blocks within implied brackets
  • Does not indent continuing line statements within brackets correctly

Credits

This was based on the ruby beautifier script by Paul Lutus and Beautiful Ruby in Textmate by Tim Burks

Main metrics

Overview
Name With Ownermocoso/code-beautifier.tmbundle
Primary LanguageRuby
Program languageRuby (Language Count: 1)
Platform
License:
所有者活动
Created At2008-09-25 07:00:53
Pushed At2012-08-08 06:08:24
Last Commit At2012-08-08 07:08:15
Release Count0
用户参与
Stargazers Count165
Watchers Count2
Fork Count6
Commits Count69
Has Issues Enabled
Issues Count10
Issue Open Count4
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private