简体   繁体   中英

Uncrustify: Which switch or setting affects the { for @interface and @protocol?

I use Uncrustify to beautify my code:

http://uncrustify.sourceforge.net/

What switch or setting affects the { for @interface and @protocol ?

I don't believe @protocol has a curly brace - since there's no ivars in a protocol. However I have added this as a feature request here so hopefully one day we get what we want:)

Unfortunately, there's no easy setting for this. However, you can edit the templates that Xcode uses by following the instructions here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM