How can I configure Xcode to put '{' where I want it in generated files

前端 未结 4 1711
一整个雨季
一整个雨季 2021-02-14 10:10

I know this is a fairly contentious issue amongst programmers, but when developing I like my IDE to position the opening curly bracket underneath the method/interface/control de

4条回答
  •  面向向阳花
    2021-02-14 11:08

    Even with those settings, it does not appear to work with the templates. If you set this and then type "init" in a .m file you get:

    - (id)init
    {
      self = [super init];
      if (self) {
        <#initializations#>
      }
      return self;
    }
    

    Note the "if (self) {" line.

提交回复
热议问题