Uncrustify ObjC newline after method
Asked Answered
A

1

5

Is there a way with Uncrustify to add a new line between method declarations and the open brace, similar to nl_fcall_brace, but for ObjC methods?

- (void)addPendingBuddyRequests:(NSArray *)requests {
}

vs.

- (void)addPendingBuddyRequests:(NSArray *)requests
{
}
Aurora answered 8/8, 2012 at 17:40 Comment(1)
You got to love uncrustify!! Hope there is one!Tatouay
P
13

i think you can use the following option for this:

# Add or remove newline between function signature and '{'
nl_fdef_brace                            = force   # ignore/add/remove/force
Plymouth answered 6/9, 2012 at 8:41 Comment(1)
God thanks! I look into this option one hour just now.Johore

© 2022 - 2024 — McMap. All rights reserved.