• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: code format template?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: code format template?


  • Subject: Re: code format template?
  • From: Ethan Tira-Thompson <email@hidden>
  • Date: Sun, 12 Jul 2009 18:40:03 -0400

Where are the project templates for Xcode installed? If I change these, will the corresponding projects made change too? Or will the settings under "Xcode Preferences | Indentation" always override them?

You can make new templates (i.e. modified versions of the standard templates)
I believe it's a matter of creating a directory like so:
/Library/Application Support/Developer/Shared/Xcode/File Templates/$MY_CUSTOM_TEMPLATES

(Or ~/Library/... for just one user)

Then create $TEMPLATE.pbfiletemplate directories which contain the template file as well as a TemplateInfo.plist.

For an example, I have a script which installs template files for commonly used classes in our project:
http://cvs.tekkotsu.org/viewvc/Tekkotsu/tools/installXCodeTemplates?revision=HEAD&view=markup

-Ethan

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >code format template? (From: William Squires <email@hidden>)
 >Re: code format template? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: code format template?
  • Next by Date: Re: Possible to add files even frameworks to project via AppleScript?
  • Previous by thread: Re: code format template?
  • Next by thread: Re: code format template?
  • Index(es):
    • Date
    • Thread