更改 Xcode 中的默认标题注释许可 [英] Changing the default header comment license in Xcode
本文介绍了更改 Xcode 中的默认标题注释许可的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每当我在 Xcode 中创建一个新的 .cpp/.h 文件时,都会在文件顶部添加一条注释.例如:
Whenever I create a new .cpp/.h file in Xcode a comment is added to the top of the file. For example:
/*
* <file>.cpp
* <Name of project>
*
* Created by <My name> on <Date>.
* Copyright <Year and company>. All rights reserved.
*
*/
我想将默认注释更改为另一个许可证,例如 GPL/LGPL/或其他许可证.有什么地方可以在 Xcode 中改变这种行为吗?
I want to change the default comment to be another license, like GPL/LGPL/ or something else. Is there somewhere I can change this behavior in Xcode?
推荐答案
/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates
您的 SDK 的任何更新都会清除此处的更改,因此请将您的模板备份到其他位置
any update of your SDK will wipe changes here so keep your template backed up somewhere else
这篇关于更改 Xcode 中的默认标题注释许可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文