XCode automatically generated comments?

▼魔方 西西 提交于 2019-12-07 05:40:47

问题


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?


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/4803600/xcode-automatically-generated-comments

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!