Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 5 - How to change copyright format

Tags:

xcode

I have been looking for this answer and have found a lot of information for changing the company name, etc. But only one that answered how to completely reformat this block of information. Unfortunately the information is dated now and I cannot seem to get it to work. The files I tried are locked. Perhaps someone out there can tell me how to do this in Xcode 5?

//
//  ___FILENAME___
//  ___PACKAGENAME___
//
//  Created by ___FULLUSERNAME___ on ___DATE___.
//  Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
//

I would like to change the format to Java Doc style. Something like this:

/**
 *  ___FILENAME___
 *  ___PACKAGENAME___
 *
 *  Created by ___FULLUSERNAME___ on ___DATE___.
 *  Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
 */

Yes, I saw this and referenced it in my original question.

That is the only one that came close by showing how to completely reformat this block. Only I think it may not work anymore. I tried to change the block but was locked out of editing. Perhaps there is something I am missing for Xcode 5 or Apple has added a new configuration for this? Still outstanding question waiting for an answer.

like image 684
Patricia Avatar asked Jan 06 '14 22:01

Patricia


People also ask

How do I change the copyright code in Xcode?

You can change the copyright template in Xcode here: Project Navigator -> File Inspector -> "Organization". Save this answer.

What are Xcode templates?

What are Xcode Templates? Xcode Templates is a tool for creating code snippets to give you a better starting point to achieve your goal. In this tutorial, I will walk you through preparing a custom template for MVVM project architecture with RxSwift and reusable classes of RxServices.

How to open template Xcode?

Using file templates in XCode To get started You just need to click File -> New -> File… Find your template in the list. Then type the name of the module.


2 Answers

enter image description here

Coming from here - How to replace the company name in the template headers in Xcode?

like image 88
RGML Avatar answered Oct 07 '22 20:10

RGML


its simple in Xcode5

select project file from project navigator on the left side

then look at the right side utilities navigator, select file navigator

now 2nd group should be "project document"

  • now overwrite "Organization" field

HTH

like image 26
vp_gold Avatar answered Oct 07 '22 21:10

vp_gold