前往->前往文件夹 (shift + command + G)填入地址 :
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File
- 将Cocoa Touch Class.xctemplate中的默认内容进行替换,过程中需要输入密码。
- 替换成功后重新打开Xcode,创建VC或者View如下图可以很容易的发现改变,有利于提升编写效率。