How would I change the initial templates created by Xcode when creating a new Cocoa Class.
I am referring to the comments and class name created when using Xcode's new class wizard.
How would I change the initial templates created by Xcode when creating a new Cocoa Class.
I am referring to the comments and class name created when using Xcode's new class wizard.
As of Xcode 7
~/Library/Developer/Xcode/Templates/File Templates
~/Library/Developer/Xcode/Templates/Project Templates
For example if I place a
Empty Application.xctemplate
in~/Library/Developer/Xcode/Templates/Project Templates/Application
It will appear in the template dialog as
In Xcode 4 and Xcode 5 the user file templates can be placed at:
~/Library/Developer/Xcode/Templates/[Category]
[Category] can be used to categorize your templates (choose a name of your choise)
If the folder doesn't exist already, create it!
In XCode 4.5 right click on project, click Show File Inspector, then change Organization name in the file inspector's second tab (Project Document group)
Right click on xCode and select Show Package contents, then go to
contents/Developer/Library/Xcode/Templates
. Here you can find the templates for all programming languages.Here some visualization: