Xcode 4 : Opening brace on the same line

后端 未结 4 638
南方客
南方客 2021-02-06 18:49

I just installed Xcode 4 and the opening brace of the auto generated functions is on a new line.

For example :

- (void)dealloc
{
  [_window release];
  [         


        
4条回答
  •  一向
    一向 (楼主)
    2021-02-06 19:07

    Don't edit those templates directly! Apple usually automatically deletes them when you upgrade to next version of Xcode...

    Instead, you want to copy/paste them into:

    ~/Library/Developer/Xcode/
    

    e.g.:

    ~/Library/Developer/Xcode/File Templates/
    ~/Library/Developer/Xcode/Project Templates/
    

    ...and then edit them there. Xcode knows it should look there for your custom versions, and Apple will leave the contents of your home directory alone.

提交回复
热议问题