压缩appCode的块

时间:2014-07-25 09:27:48

标签: xcode appcode

我真的不喜欢AppCode如何缩进块,如下例所示。

我想将AppCode设置为像Xcode一样缩进块,甚至缩进然后更加容易说出方法名称的结束位置和块开始。这怎么可能?

AppCode:

[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();
        }
    }
}];

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();
                         }
                     }
                 }];

0 个答案:

没有答案