Remove copyright in Xcode generated source code

时光怂恿深爱的人放手 提交于 2019-12-07 02:27:00

问题


Is there any way to completely remove the comment with the copyright notice when creating a new source code file with Xcode 4?

Insted of:

//
//  MainView.h
//  ProjectName
//
//  Created by First Last Name on 1/2/34.
//  Copyright (c) 2012 Company Name. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface MainView : UIView

@end

I'd like to have:

#import <UIKit/UIKit.h>

@interface MainView : UIView

@end

回答1:


The safest way to do what you want is to create a custom file template. Make a copy of Apple's file template, open the header file, and remove the introductory comments. More detailed information on creating custom file templates is in the following article:

Creating Custom Xcode 4 File Templates



来源:https://stackoverflow.com/questions/10023745/remove-copyright-in-xcode-generated-source-code

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