Indent/Align arguments/argument labels


#1

In Xcode 5 / Objective C I was able to line up method arguments/argument labels by pressing return.
Has this been removed or perhaps is now a bug? Does anyone know how to do this with Xcode 6.3/Swift ?

example: The colons are lined up after pressing return

[NSTimer scheduledTimerWithTimeInterval:1
                                 target:self
                               selector:@selector(timerDisplay)
                               userInfo:nil
                                repeats:YES];

Thanks
Rob


#2

Select multiple lines and press “Ctr + I”


#3

Thanks. That will format with the indents set in preferences. What I was able to do was to have the argument labels line up at the colons when pressing return at the argument label. Something seems to have changed from Xcode 5. Am I missing something in the preferences?

Here’s what it does now (with “Ctr + I”)

[NSTimer scheduledTimerWithTimeInterval:1
  target:self
  selector:@selector(timerDisplay)
userInfo:nil
repeats:YES];

#4

Don’t know about any other way…sorry