Xcode change/remove comment template

2019-02-12 20:04发布

Recently I've been learning how to program C. For most of the time, I have been using the C version of Eclipse. Recently, I tried out Xcode. I am using a Mac running Mac OS X Lion - Xcode version 4.1.

There is one grievance I have: at the top of every file that I create, there is this little section of comments that I wish to remove or better yet, change.

When I create a file, something like this is put at the top of the file by default:

//
//  FILE.c
//  PROJECT NAME
//
//  Created by Martin Tuskevicius on DATE.
//  Copyright YEAR ORGANIZATION (my school name for some reason). All rights reserved.
//

Obviously the things in capitals would be replaced with an actual value. For those of you have use, or have used Xcode, for programming C - do you know a way of how to change or remove these default comments?

I really appreciate any help. Thanks!

2条回答
We Are One
2楼-- · 2019-02-12 20:24

UPDATE:

According to @Michael Dautermann 's comment below, change templates in Xcode.app bundle is not a good way. Check https://stackoverflow.com/a/33743/380774 for more information.


You can remove or change the header in File Templates, I'm using Xcode 4.3, and the File Templates is in /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates.

查看更多
你好瞎i
3楼-- · 2019-02-12 20:24

You can change it in Xcode project File. This is my image for tutorial :D Very easy!!! change Organization in Xcode

查看更多
登录 后发表回答