For programming PHP with TextMate (OS X) I’d like it to use Allman indentation:
for($i = 0; $i < 1000; $i++)
{
echo($i);
}
Rather than the default indentation:
for($i = 0; $i < 1000; $i++) {
echo($i);
}
I can only find bundles to re-indent existing code, but not to simply use this indentation by default.
Turned out to be simple. Simply press
enterfirst, then type the first curly brace, like so:for($i = 0; $i < 1000; $i++)enter{Code will then be formatted like so: