【发布时间】:2015-08-05 10:49:42
【问题描述】:
如何在使用 uncrustify 调用 super 后添加换行符
当前:
- (void)someFunction
{
[super someFunction];
more stuff;
and more stuff;
}
期望:
- (void)someFunction
{
[super someFunction];
more stuff;
and more stuff;
}
以及如何在接口声明和实现声明前后添加换行符
当前:
@interface SCLoginScreenViewController ()
@property (weak, nonatomic) IBOutlet UIView *someView;
@property (weak, nonatomic) IBOutlet UIView *anotherView;
@end
@implementation SCLoginScreenViewController
- (void)someFunction
{
}
期望:
@interface SCLoginScreenViewController ()
@property (weak, nonatomic) IBOutlet UIView *someView;
@property (weak, nonatomic) IBOutlet UIView *anotherView;
@end
@implementation SCLoginScreenViewController
- (void)someFunction
{
}
- 我正在使用 BBUncrustifyPlugin 和 UncrustifyX
【问题讨论】:
-
看来,需要创建一个可以做到这一点的插件!
-
@RoNiT,已经有一个插件 - BBUncrustifyPlugin。问题是使用 250 个选项中的哪个选项
标签: objective-c xcode uncrustify