【发布时间】:2017-09-19 07:15:27
【问题描述】:
我有一个(实际上是几个)相当长的 api 调用,带有这样的回调块:
[[APIsController sharedInstance] submitCaptchaRequestWithParams:param
completehandler:^(NSData *data, NSURLResponse *response, NSError *error) {
}];
如何更改 xcode 的自动缩进,使其内容块的内容与原行相差 4 个空格,如下所示:
[[APIsController sharedInstance] submitCaptchaRequestWithParams:param
completehandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (!error) {
// Continue
}
}];
而不是这个:
[[APIsController sharedInstance] submitCaptchaRequestWithParams:param
completehandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (!error) {
// Continue
}
}];
当前的自动缩进在编辑器中留下了很多空格。我当前的缩进设置是:
【问题讨论】:
标签: xcode editor objective-c-blocks indentation auto-indent