我希望我的多行方法调用如下:
[self.markAsFinishedButton
setBackgroundImage:[UIImage imageWithColor:[UIColor blueButtonColor] andSize:CGSizeMake(1, 1)]
forState:UIControlStateHighlighted];
但就目前而言,它看起来像这样:
[self.markAsFinishedButton
setBackgroundImage:[UIImage imageWithColor:[UIColor blueButtonColor] andSize:CGSizeMake(1, 1)]
forState:UIControlStateHighlighted];
我的.uncrustify
文件在这里:
https://gist.github.com/nickcheng/d107d6f0f74ef381fb8e
顺便说一句,我可以使用这样的配置在分配中得到正确的缩进:
_tapRecognizer = [[UITapGestureRecognizer alloc]
initWithTarget:self
action:@selector(controlButtonTapped)];
有人可以帮助我吗?谢谢!
答案 0 :(得分:0)
我使用了这两个(第二个用于消息声明):
align_oc_msg_colon_span = 10
align_oc_decl_colon = true
但我通常会对齐这样的代码:
[self.markAsFinishedButton setBackgroundImage:[UIImage imageWithColor:[UIColor blueButtonColor]
andSize:CGSizeMake(1, 1)]
forState:UIControlStateHighlighted];