一个被遗弃的 Textmate 套件,用于缩进代码
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.
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.tmbundleOtherwise 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
This was based on the ruby beautifier script by Paul Lutus and Beautiful Ruby in Textmate by Tim Burks
暂无开放 Issues,或尚未同步最近议题。