我真的不喜欢 AppCode 如何像下面的示例那样缩进块。
我想设置 AppCode 以像 Xcode 那样缩进块,甚至缩进更多,这样更容易说出方法名称的结束位置和块的开始位置。这怎么可能?
应用代码:
[UIView animateWithDuration:2.f
delay:.2f
usingSpringWithDamping:1.f
initialSpringVelocity:-1.5f
options:UIViewAnimationOptionAllowUserInteraction
animations:^{
self.buttonConstraint.constant = 0;
[self.view layoutIfNeeded];
} completion:^(BOOL finished) {
if (finished) {
if (completionBlock) {
completionBlock();
}
}
}];
代码:
[UIView animateWithDuration:2.f
delay:.2f
usingSpringWithDamping:1.f
initialSpringVelocity:-1.5f
options:UIViewAnimationOptionAllowUserInteraction
animations:^{
self.buttonConstraint.constant = 0;
[self.view layoutIfNeeded];
} completion:^(BOOL finished) {
if (finished) {
if (completionBlock) {
completionBlock();
}
}
}];