Xcode 文件头 author 日期等设置

2023-05-05  本文已影响0人  wealon

从全局修改新创建文件的 Created by ,显示如下

//
//  ChannelInfo.m
//  XXXFramework
//
//  Created by wealon on 2023/4/17.
//  Copyright © 2023 Compony-Name.  All rights reserved.
//

查看位置位置

~/Library/Developer/Xcode/UserData/IDETemplateMacros.plist

如果路径下没有此文件,创建一个

添加文件内容

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>FILEHEADER</key>
    <string>
//  ___FILENAME___
//  ___PACKAGENAME___
//  
//  Created by wealon on ___DATE___.
//  Copyright © ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
//  
    </string>
</dict>
</plist>

参考内容

https://help.apple.com/xcode/mac/11.4/?localePath=en.lproj#/dev91a7a31fc
https://help.apple.com/xcode/mac/11.4/?localePath=en.lproj#/dev882f4ad3d
https://help.apple.com/xcode/mac/11.4/?localePath=en.lproj#/dev7fe737ce0

上一篇下一篇

猜你喜欢

热点阅读