[TxMt] Re: Whitespace bundle?

Martin Kühl martin.kuehl at gmail.com
Thu Jul 28 20:24:34 UTC 2011


On Thu, Jul 28, 2011 at 18:47, Wells Oliver <wellsoliver at gmail.com> wrote:
> Hey everyone. Apologies if this has been covered to death, but I use
> TextMate to do PHP development, and I'm frustrated by the autoindentation: I
> use spaces instead of tabs and the autoindent will put N number of spaces
> for the empty line rather than just a new line.
> Is there either an addition to the PHP bundle or a standalone bundle itself
> that can clean this up for me?

1) Enable “Soft Tabs”. Click in the bar at the bottom, where it says
   “Tabs: N” and choose “Soft Tabs” from the pop up menu.
2) Make judicious use of the “Remove Trailing Spaces in
   Document/Selection” command, which is part of the Text bundle.

HTH,
Martin


More information about the textmate mailing list