Xcode settings-Modify the comment module company name in the source file

Source: Internet
Author: User

1: Set _ mycomponyname _ as your company name.

In xcode, a comment module is automatically generated for the newly created OC source file. The format is as follows:

1 // 2 // firstoc. H3 // mynewoctest4 // 5 // created by jftt on 12-4-18.6 // copyright 2012 _ mycompanyname _. All rights reserved.7 //

Here, jftt is the user name, which is the same as the current user name on Mac. As for _ mycomponyname _, we need to change it to our company name. The method is as follows:

If your xcode version is earlier than xcode4, you can modify it through the following command on the command line:

1 defaults write com. Apple. projectbuilder pbxcustomtemplatemedia definitions '{"organizationname" = "jftt ";}'

 

Replace jftt with your company name.

For Versions later than xcode4, you can set it as follows:

Open the address book in the system application, create a business card, and enter your own name and company name in my business card.

 

OK. When you create a new source file in xcode, you will find the effect.

/// Firstoc. h // mynewoctest /// created by jftt on 12-4-18. // copyright 2012 jftt. All Rights Reserved .//

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.