Xcode: Adjusting indentation of auto-generated braces?

前端 未结 6 1279
遥遥无期
遥遥无期 2020-12-07 17:37

Code auto-generated by Xcode seems to have the opening brace on the same line by default:

@interface Controller : NSObject {

}

I\'d like t

6条回答
  •  眼角桃花
    2020-12-07 18:18

    The New Project and New File commands don't really generate any code; they fill in templates.

    You'll need to create your own templates (probably based on Apple's) with the changes you want.

    In Xcode 3.1, the stock templates are in /Developer/Library/Xcode. You'll put your modified copies in ~/Library/Application Support/Developer/Shared/Xcode. Pay attention to the subfolders of those folders.

提交回复
热议问题