qfish / XAlign

An amazing Xcode Source Editor extension to align regular code. It can align anything in any way you want.
MIT License
2.88k stars 385 forks source link

注释怎么对齐 #44

Open ufosky opened 9 years ago

ufosky commented 9 years ago

现在的对齐效果如下,我想要注释能对齐 对其前

@property(nonatomic, readonly)NSString *abcde; // 属性abcde
@property(nonatomic, readonly)NSString *bcde; // 属性bcde
@property(nonatomic, strong)NSString *cde;           // 属性cde
@property(nonatomic, readonly)NSArray *de;         // 属性de
@property(nonatomic, strong)NSDictionary *e; // 属性e
@property(nonatomic, weak, readonly)id delegate;         // 属性delegate

对齐后

@property (nonatomic, readonly      ) NSString     *abcde;// 属性abcde
@property (nonatomic, readonly      ) NSString     *bcde;// 属性bcde
@property (nonatomic, strong        ) NSString     *cde;// 属性cde
@property (nonatomic, readonly      ) NSArray      *de;// 属性de
@property (nonatomic, strong        ) NSDictionary *e;// 属性e
@property (nonatomic, weak, readonly) id           delegate;// 属性delegate
Tedko commented 9 years ago

fix 了么?

heeween commented 9 years ago

我也有同样的困惑 怎么fix ?

whateve2 commented 7 years ago

这个问题解决了没有?注释没有对齐感觉很别扭啊