Uncrustify 在 long objective c 方法声明处忽略格式化新行

Uncrustify ignore formatting new line at long objective c method decleration

我希望 uncrustify 忽略由开发人员格式化的新行,但对于我的配置文件,它不会这样做。

我的代码是什么样的,我希望它不变

+ (void)doSometingAwesomeWithIndex:(NSInteger)index
                  howManyDaysLater:(BOOL)howManyDaysLater
                           myBroes:(NSMutableArray *)broes
                        completion:(AwesomeBlock)completionBlock

格式化时 uncrustify 的作用

+ (void)doSometingAwesomeWithIndex:(NSInteger)index
    howManyDaysLater:(BOOL)howManyDaysLater
    myBroes:(NSMutableArray *)broes
    completion:(AwesomeBlock)completionBlock

我正在使用 uncrustify 0.61,我的配置文件是 http://www.megafileupload.com/edbM/uncrustify.cfg

我建议https://github.com/square/spacecommander

可能与 Can Uncrustify align colons in Objective-C method calls?

重复