When Xcode creates a new file, there's always something like this in the header:
當Xcode創建一個新文件時,標題中總會有這樣的內容:
// Copyright 2009 __MyCompanyName__. All rights reserved.
How can I change that?
我怎么能改變呢?
10
You can change it in Xcode project File. This is my image for tutorial.
您可以在Xcode項目文件中更改它。這是我的圖片教程。
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:
Xcode將嘗試從系統地址簿中的條目中提取此信息 - 如果您無法在其中進行修改,請嘗試使用此命令覆蓋:
defaults write com.apple.xcode PBXCustomTemplateMacroDefinitions '{ ORGANIZATIONNAME = "ORGNAME";}'
defaults write com.apple.xcode PBXCustomTemplateMacroDefinitions'{ORGANIZATIONNAME =“ORGNAME”;}'
8
As a follow-up to the answer above, for documentation of that and many other preferences see the Xcode defaults reference
作為上述答案的后續內容,有關該文檔和許多其他首選項的文檔,請參閱Xcode默認參考
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.
從xcode 3開始,如果com.apple.Xcode.plist中缺少“PBXCustomTemplateMacroDefinitions”鍵,它將使用地址簿卡中的“公司”字段。
0
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions ' { "ORGANIZATIONNAME" = "javacom"; } '
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions'{“ORGANIZATIONNAME”=“javacom”; }'
Entered in Terminal.
進入終端。
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2009/07/15/7208a9eca741bc724fc331fab9a53d78.html。