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

前端 未结 4 1690
一整个雨季
一整个雨季 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 10:52

    After digesting the helpful information from WhirlWind above (thanks), the resulting snippet (just cut and paste into terminal) is:

    defaults write com.apple.Xcode XCCodeSenseFormattingOptions -dict BlockSeparator "\\n" PreMethodDeclSpacing ""

    Stupid backslash quoting. When typed at the terminal, there should be TWO exactly TWO backslashes in the block separator.

提交回复
热议问题