I use Uncrustify to beautify my code:
http://uncrustify.sourceforge.net/
What switch or setti开发者_运维百科ng affects the {
for @interface
and @protocol
?
Unfortunately, there's no easy setting for this. However, you can edit the templates that Xcode uses by following the instructions here.
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 :)
精彩评论