[TxMt] A new "Join Line With Next" macro

Ciarán Walsh ciawal at gmail.com
Tue Oct 17 10:41:54 UTC 2006


I work with a lot of code which has 'dropped' braces, such as

if ()
{
}
else
{
}

I personally prefer the K&R style, such as

if () {
} else {
}

I made this new macro to make conversions easier - it simply keeps a
space before/after the brace when joining lines - otherwise joining
the lines would result in

if (){
}else{
}

I added it as a second macro with a scope of just "source", so text
files won't be affected.

Thoughts?

Cheers,
Ciarán
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Join Line With Next (preserving	braces).tmMacro
Type: application/octet-stream
Size: 1700 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20061017/3827b067/attachment.tmMacro>


More information about the textmate mailing list