Uncrustify obj-c:调用super,interface声明和实现声明之前和之后的换行符

Lud*_*uda 5 xcode objective-c uncrustify

如何在使用uncrustify调用super之后添加换行符

当前:

- (void)someFunction
{
   [super someFunction];
   more stuff;
   and more stuff;
}
Run Code Online (Sandbox Code Playgroud)

期望:

- (void)someFunction
{
   [super someFunction];

   more stuff;
   and more stuff;
}
Run Code Online (Sandbox Code Playgroud)

如何在界面声明和实现声明之前和之后添加换行符

当前:

@interface SCLoginScreenViewController ()
@property (weak, nonatomic) IBOutlet UIView *someView;
@property (weak, nonatomic) IBOutlet UIView *anotherView;
@end
@implementation SCLoginScreenViewController
- (void)someFunction
{
}
Run Code Online (Sandbox Code Playgroud)

期望:

@interface SCLoginScreenViewController ()

@property (weak, nonatomic) IBOutlet UIView *someView;
@property (weak, nonatomic) IBOutlet UIView *anotherView;

@end

@implementation SCLoginScreenViewController

- (void)someFunction
{
}
Run Code Online (Sandbox Code Playgroud)
  • 我正在使用BBUncrustifyPlugin和UncrustifyX