【问题标题】:Is there a maximum indentation at once setting for Uncrustify?Uncrustify 是否有一次最大缩进设置?
【发布时间】:2012-02-02 00:24:58
【问题描述】:

我有一段像这样的目标 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 将两个缩进合并为一个并保留代码的格式?

【问题讨论】:

  • 你找到答案了吗?

标签: objective-c code-formatting uncrustify


【解决方案1】:

我相信这个问题已在 Uncrustify 0.58 中修复

【讨论】:

    猜你喜欢
    • 2019-02-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多