How do you automatically align method arguments in Swift with a colon?

In Objective-C, method arguments are aligned based on their colon when a new line is added.

In Swift, this does not seem to be the case, and I cannot get it to work. How to enable this for Swift?

+5
source share
1 answer

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

+1
source

Source: https://habr.com/ru/post/1213463/


All Articles