11

When Xcode creates a new file, there's always something like this in the header:

//  Copyright 2009 __MyCompanyName__. All rights reserved.

How can I change that?

Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
Thanks
  • 40,109
  • 71
  • 208
  • 322
  • Just a note for visitors: In Xcode 4 company name is set at project level, see this question: http://stackoverflow.com/questions/5770126/how-can-i-change-the-copyright-template-in-xcode-4 – jim Nov 29 '12 at 09:40

5 Answers5

10

You can change it in Xcode project File. This is my image for tutorial. enter image description here

Linh Nguyen
  • 2,006
  • 1
  • 20
  • 16
9

Xcode will try to pull this information from your entry in the system address book - if you can't modify it there, try using this command to override:

defaults write com.apple.xcode PBXCustomTemplateMacroDefinitions '{ ORGANIZATIONNAME = "ORGNAME";}'

pix0r
  • 31,139
  • 18
  • 86
  • 102
8

As a follow-up to the answer above, for documentation of that and many other preferences see the Xcode defaults reference

smorgan
  • 20,228
  • 3
  • 47
  • 55
1

As of xcode 3, it will use the "company" field from your Address Book card if the "PBXCustomTemplateMacroDefinitions" key is missing from com.apple.Xcode.plist.

Mark
  • 6,108
  • 3
  • 34
  • 49
0

defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions ' { "ORGANIZATIONNAME" = "javacom"; } '

Entered in Terminal.

Jason
  • 452
  • 4
  • 9