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
{
}
David Beck
  • 10,099
  • 5
  • 51
  • 88

1 Answers1

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
Willem D'Haeseleer
  • 19,661
  • 9
  • 66
  • 99