XCode automatically generated comments?

2019-04-30 04:30发布

Every time when I create a new file in XCode, it makes some comment at the top of the file. Recently it has changed somehow - I dont know why and how to reset this.

Its now like this:

//
//  [Filename.cpp]
//  [Projectname]
//
//  Created by [Name] on [Date]
//  Copyright 2011 [Company]. All rights reserved.
//

But was first like this:

/*
 *  [Filename.cpp]
 *  [Projectname]
 *
 *  Created by [Name] on [Date]
 *  Copyright 2011 [Company]. All rights reserved.
 *
 */

So is there some setting, where I can reset this style of auto generated comments? Where I can I change this?

2条回答
贼婆χ
2楼-- · 2019-04-30 04:37

On a default installation, the directory "/Developer/Library/XCode/File Templates" has all the new file templates.

查看更多
成全新的幸福
3楼-- · 2019-04-30 04:59

It's in the template files; here's a post about providing custom templates (the paths might have changed, but the technique still works).

查看更多
登录 后发表回答