开发者

Xcode Disable Colon-aligning Auto-indent

开发者 https://www.devze.com 2022-12-26 20:16 出处:网络
Is there any way to disable the auto-indent Xcode performs to align colons when breaking up a long method name into multiple lines?

Is there any way to disable the auto-indent Xcode performs to align colons when breaking up a long method name into multiple lines?

Tha开发者_运维技巧t is, I'd rather not have this:

UIBarButtonItem *longDescriptiveButton = [[UIBarButtonItem alloc] initWithTitle:@"Title of Button"
                                                                          style:UIBarButtonItemStyleBordered
                                                                         target:self
                                                                         action:@selector(longDescriptiveButtonClicked)];

which, as you can see, looks terrible when variable/method/class names are long.


Not completely the answer you are looking for, but I'm using uncrustify to do code formatting. I run it from the Xcode scripts menu via a hot key.

0

精彩评论

暂无评论...
验证码 换一张
取 消