Re: Heading comment...
Re: Heading comment...
- Subject: Re: Heading comment...
- From: Thomas Dibble <email@hidden>
- Date: Mon, 12 Jan 2004 01:08:33 -0800
Correct. Look in the /Library/Application Support/Apple/Developer
Tools/File Templates folder. In there, you'll see folders for each of
the "groups" in the XCode "New File" dialog. In each group-level
folder you'll see a folder for each specific type of file you can
create.
Simply modify the template corresponding to your file (most likely one
of the Carbon sub-folders; C++ class or C file).
Yes, you can place these templates in the ~user/Library/... folder
(same path as the root Library, but rooted in your home directory). I
haven't tried overriding a file in my local templates folder, but
adding a new template there works quite well. Overriding should work,
so far as I can tell.
Unfortunately, I can't seem to find any official documentation on the
template file format. As a result, it's reasonably likely to change
with some future release of XCode. However, this tip on CocoaDev lists
some of the template file variables that can be used (in place of
FILENAME, etc) ... you'll want to cut/paste the "odd" characters from
an existing variable before using these ... These are listed for
Project Templates; File Templates seem to support a similar list of
variables. Unless someone can find documentation on this, you're left
to experiment right now.
http://www.cocoadev.com/index.pl?ProjectBuilderTips
---- Tom Dibble
On Jan 11, 2004, at 3:49 PM, Kevin Grant wrote:
>>> Does anybody know how to customize the heading comment that is added
>>> to each
>>> new file you create in Xcode? Is it even possible to change it to
>>> something
>>> else by default?
>
> Take a look in "/Library/Application Support/Apple/Developer Tools",
> there are all kinds of goodies in there...my guess would be that one
> of those files is the template for this.
>
> You *shouldn't* change the /Library stuff unless you want it changed
> for all users though.
>
> The correct way to override it (usually) is to create a corresponding
> "~/Library/Application Support/Apple/Developer Tools" structure (that
> is, in your home directory), containing your customizations.
>
> Kevin G.
> http://homepage.mac.com/kmg/
> mail to kevin at ieee dot org
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.