Xcode自定义代码模板
2017-06-23 本文已影响75人
dispath_once
1、进入系统目录/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates打开里面的Fild Templates-->Source---Cocoa Touch Class.xctemplate。
2、在目录~/Library/Developer/Xcode/Templates下面新建文件夹Templates然后在Templates下面自定义一个文件夹,我这里建立文件夹名字叫Custom。
3、把第一步的Cocoa Touch Class.xctemplate拷贝到Custom文件夹下面,然后对里面的文件进行相应的修改。