How to keep the header comments up to date in Xcode

后端 未结 3 1116
刺人心
刺人心 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:31

    I use custom templates (see @TMB's comment for a link explaining creating your own) that eliminate the project name and copyright info. File name changes rarely enough that that hasn't bothered me yet. If it became a problem, I would just eliminate it from my templates. If I did it again, I would eliminate the file line from the start: There are better and more reliable ways to figure out what file you're in than going to the top of the file.

提交回复
热议问题