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?
On Jul 28, 2011, at 12:47 PM, Wells Oliver 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?
I can’t find it documented, but ⌥↩ should give you a new line with no indentation.
On Thu, Jul 28, 2011 at 18:47, Wells Oliver wellsoliver@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