[英]Uncrustify: Which switch or setting affects the { for @interface and @protocol?
[英]Is there a maximum indentation at once setting for Uncrustify?
我有一塊看起來像這樣的客觀c代碼
[paths enumerateObjectsUsingBlock:^(NSString * path, NSUInteger idx, BOOL * stop) {
BOOL isDir;
if ([fm fileExistsAtPath:path isDirectory:&isDir]) {
......
}
}];
然而,在通過Uncrustify后,它變成了
[paths enumerateObjectsUsingBlock:^(NSString * path, NSUInteger idx, BOOL * stop) {
BOOL isDir;
if ([fm fileExistsAtPath:path isDirectory:&isDir]) {
......
}
}];
反正有沒有讓Uncrustify將兩個縮進合並為一個並保留代碼的格式?
我相信這個問題已在Uncrustify 0.58中修復
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.