8

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
rid
  • 61,078
  • 31
  • 152
  • 193

1 Answers1

2

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

Swift Dev Journal
  • 19,282
  • 4
  • 56
  • 66
  • You can modify the templates. The problem is your modifications would get overwritten the next time you update Xcode to a newer version. Creating a custom template allows your changes to survive Xcode updates. – Swift Dev Journal Apr 06 '12 at 00:20