How to keep the header comments up to date in Xcode

后端 未结 3 1120
刺人心
刺人心 2021-02-05 18:38

Xcode has a habit of putting all kinds of (redundant) information at the top of each code file it creates, containing copyright notices, class names, project names and client na

3条回答
  •  悲哀的现实
    2021-02-05 19:35

    There may be a way to update your comments but it will be tricky.

    As far a customizing the template, this is not as bad. it is just a text file located in /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/Cocoa Touch/

    Don't edit the files here, they will get overwritten when you update, or reinstall xcode. Place your custom templates here, in your home directory.

    ~/Library/Developer/Xcode/Templates/File Templates/

    High Order Bit explains further.

提交回复
热议问题