How to get AppCode to indent line breaks to brackets?

Answered

I work in a team that mainly use Xcode for development. In Xcode, line breaks will indent to the bracket in long method call. For example, this is what it looks like after Xcode indentation:

However, in AppCode, it will become

Is there any settings for this? I've looked in indentation settings but found there were quite limited options.

4 comments
Official comment

Hi.

I believe enabling "Align when multiline" option should help (Editor | Code Style | Swift | Wrapping and Braces | Method/function call arguments).

Thanks, Tatiana, worked like a charm :D

0

Hi,

I'm using Method/function call arguments with "Wrap always" option, but is it possible to turn OFF (or add next checkbox) wrapping for subscript functions?

0

Hi Jakub.

>I'm using Method/function call arguments with "Wrap always" option, but is it possible to turn OFF (or add next checkbox) wrapping for subscript functions?

That's not possible at the moment. But I've created OC-16143 for that - please vote and leave comments as you see fit.

0

Please sign in to leave a comment.