code-beautifier.tmbundle

An abandoned Textmate bundle for indenting code

Github星跟踪图

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

主要指标

概览
名称与所有者mocoso/code-beautifier.tmbundle
主编程语言Ruby
编程语言Ruby (语言数: 1)
平台
许可证
所有者活动
创建于2008-09-25 15:00:53
推送于2012-08-08 14:08:24
最后一次提交2012-08-08 14:08:15
发布数0
用户参与
星数164
关注者数1
派生数6
提交数69
已启用问题?
问题数10
打开的问题数4
拉请求数1
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?