Xcode 禁用冒号对齐自动缩进
当将长方法名称分解为多行时,是否有任何方法可以禁用 Xcode 执行的自动缩进以对齐冒号?
也就是说,我不想这样:
UIBarButtonItem *longDescriptiveButton = [[UIBarButtonItem alloc] initWithTitle:@"Title of Button"
style:UIBarButtonItemStyleBordered
target:self
action:@selector(longDescriptiveButtonClicked)];
正如您所看到的,当变量/方法/类名称很长时,它看起来很糟糕。
Is there any way to disable the auto-indent Xcode performs to align colons when breaking up a long method name into multiple lines?
That 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不完全是您正在寻找的答案,但我正在使用 uncrustify 进行代码格式化。我通过热键从 Xcode 脚本菜单运行它。
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.