Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reformatting to have method parameters in a new line

There are so many settings in the preferences for Code->Style->Objective-C. I'm looking for the right one to reformat this line of code

SCPropertyDefinition *test = [SCPropertyDefinition definitionWithName:@"created_at" title:@"Tweeted At" type:SCPropertyTypeLabel];

to this format

SCPropertyDefinition *test = [SCPropertyDefinition definitionWithName:@"created_at" 
                                                                title:@"Tweeted At" 
                                                                 type:SCPropertyTypeLabel];

(the point is to have the colons indention matching)

I guess the it should be in the Wrapping and Braces Tab, but I havn't found the right setting yet. Thanks for your ideas.

like image 278
brainray Avatar asked Dec 12 '22 15:12

brainray


1 Answers

The setting you are looking for is Wrapping and Braces | Method call arguments set to Chop down if long with enabled Align by colon. Note that there are separate settings for Method parameters.

like image 133
Anton Makeev Avatar answered Jan 11 '23 11:01

Anton Makeev