views:

137

answers:

1

Is there a macro or preference setting that would automatically align method parameters along the columns and colons in Xcode?

Basically a shortcut to turn this:

  [object methodWithParam:theParam another:theOtherValue something:theSomethingValue else:theElseValue];

automatically into this:

  [object methodWithParam:theParam
                  another:theOtherValue
                something:theSomethingValue
                     else:theElseValue];

Is it possible to get this working with code completion? In other words when I tab complete a method it would automatically wrap the formatting into this style? And what about preexisting code? Can I put my caret inside a method, press a keyboard shortcut and auto format the parameters?

A: 

It has no built in support for this. See the answers in this SO question for some tips.

nall