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

前端 未结 4 1699
一整个雨季
一整个雨季 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:03

    Take a look at:

    Xcode: Adjusting indentation of auto-generated braces?

    Apple Xcode User Defaults

    XCCodeSenseFormattingOptions = {
      BlockSeparator = "\\n";
      PreMethodDeclSpacing = "";
    };
    

    This should at least solve your problem after if, for, or while statements.

提交回复
热议问题