Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you auto-align method arguments in Swift using the colon?

Tags:

xcode

swift

In Objective-C, method arguments are aligned based on their colon when adding a newline.

In Swift, this doesn't seem to be the case and I can't get it to work. How do I enable this for Swift?

like image 307
Christopher Kevin Howell Avatar asked Nov 09 '22 18:11

Christopher Kevin Howell


1 Answers

This is a feature of the IDE (Xcode) and there is, unfortunately, no option even as of Xcode 7.1. The only way to get Apple to prioritize this is to file a bug report against Xcode.

like image 65
Joshua Nozzi Avatar answered Dec 14 '22 23:12

Joshua Nozzi