Uncrustify是否有办法在方法声明和开括号之间添加一个新行,类似于nl_fcall_brace
,但对于ObjC方法?
- (void)addPendingBuddyRequests:(NSArray *)requests {
}
VS
- (void)addPendingBuddyRequests:(NSArray *)requests
{
}
答案 0 :(得分:12)
我认为您可以使用以下选项:
# Add or remove newline between function signature and '{'
nl_fdef_brace = force # ignore/add/remove/force