[TxMt] Reformat php?
Erwan David
erwan at rail.eu.org
Sun May 6 08:05:23 UTC 2007
Le Sun 6/05/2007, Dan Lowe disait
>
> On May 6, 2007, at 2:22 AM, Brian Armstrong wrote:
>
> > and I run the reformat on it, or ^Q, then I get this:
> >
> > // make sure it doesn't crash in an ugly way if
> > (!function_exists('foo')) { die("this function required"); }
> >
> > Not very helpful, and you notice that the 'if' is now on a comment line!
>
> ^Q is a paragraph reformat, which as you have found is not so great for
> code. I believe what you are looking for is a way to (re-)indent code, in
> which case you want this:
>
> Text -> Indent Selection ( cmd-opt-[ )
>
> Note that you need to have a selection active for this to be available.
> Otherwise it will act on the current line only.
Is there a way to rebind this ? On a french keyboard, [ is Shift-opt-5 thus a
problem to get opt-[
--
Erwan
More information about the textmate
mailing list