[TxMt] Re: Cuddling toggle?

Scott Haneda talklists at newgeo.com
Fri Mar 27 21:31:37 UTC 2009


Looking at the CSS bundle for format CSS, it will do this, but not  
100% correct.  it does solve the cuddle aspects

function FunctionName($value='')
{
     # code...
}

will become

function FunctionName($value='') {
     # code...
}

How can I extract just that part out of the bundle?

On Mar 27, 2009, at 2:36 AM, Scott Haneda wrote:

> Is there a native way to do brace reformatting?  I believe it is
> called "cuddling".  I often pull a function from here or there, and
> the formatting is not to my liking...
>
> function {
>  # code
> }
>
> versus
>
> function
> {
>  # code
> }

--
Scott * If you contact me off list replace talklists@ with scott@ *




More information about the textmate mailing list