我有以下代码:
@interface TRYoutubeManager : AFHTTPRequestOperationManager
- (void)getVideosForDefaultChannelsWithSuccess:(void (^)(NSArray *youtubeVideosArray))successBlock failure:(void (^)(NSError *error))failureBlock;
@end
所以我想保留 120 个字符的行限制。并在冒号上对齐声明,如下所示:
@interface TRYoutubeManager : AFHTTPRequestOperationManager
- (void)getVideosForDefaultChannelsWithSuccess:(void (^)(NSArray *youtubeVideosArray))successBlock
failure:(void (^)(NSError *error))failureBlock;
@end
但是当我对其应用 Uncrustify 时,我得到:
@interface TRYoutubeManager : AFHTTPRequestOperationManager
- (void)getVideosForDefaultChannelsWithSuccess:(void (^)(NSArray *youtubeVideosArray))successBlock failure:(void (^)(
NSError *
error))
failureBlock;
@end
插件破坏了整个事情。甚至超出了行限制。这是一些关键的(我猜)参数:
# Align ObjC declaration params on colon
align_oc_decl_colon = true #
# Alignment span for ObjC message colons
align_oc_msg_colon_span = 20 # number
# Alignment span for ObjC message spec
align_oc_msg_spec_span = 0 # number
# Code width
code_width = 120 # number
整个配置文件在这里
请帮我设置 Uncrustify config correclty。