Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When i purchased a new Mac book and turned it on for the first time, there was a pop up where i had to enter my name, address, email etc.

I skipped the email field, and now in xCode, my name and my company name gets displayed as comments and not my email address. So how can i get my email to get displayed in xCode in the comment section ?

note: I only want my email ID to be displayed in xCode and not in other applications.

share|improve this question
up vote 2 down vote accepted

By default, Xcode does not include your email in the automatically generated headers, regardless of whether you gave it to your Mac or not.

However, if you want to change how the automatically generated headers look, navigate to, right-click it, click on Show Package Contents, then go to Contents/Developer/Library/Xcode/Templates/File Templates. There you will find the templates Xcode uses; feel free to edit them to include your email address.

Note: the above assumes you have the latest version of Xcode, which is installed as an app, with the Developer directory inside the app bundle. If you have an older version, you'll probably find the templates in /Developer/Library/Xcode/Templates/File Templates instead.

share|improve this answer
+1 for the tip about xcode templates, I wasn't aware that was where the header info came from. Thanks. – binarybob Mar 31 '12 at 17:33
No +1 for the person who asked the question :( – illep Mar 31 '12 at 17:44
@illep: gave you one :P – houbysoft Mar 31 '12 at 17:56
@illep Thats a fair comment, I guess without the question there wouldn't have been the answer. +1's all round then :) – binarybob Mar 31 '12 at 20:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.