所以基本上我有这样的代码:
NSString *const SomeKey = @"SomeKey";
@implementation SomeClass
- (void)doSomeWork {
[self startDoingSomeWork];
[self stopDoingSomeWork];
[self notifySomeWorkDone];
}
我需要将此代码自动格式化为这种形式:
NSString *const SomeKey = @"SomeKey";
@implementation SomeClass
- (void)doSomeWork {
[self startDoingSomeWork];
[self stopDoingSomeWork];
[self notifySomeWorkDone];
}
所以基本上我需要用单个空行替换所有双、三等空行。
是否有任何 Uncrustify 选项可以启用它?
如果否,那么您知道这种情况的任何解决方法吗?