Xcode change/remove comment template

前端 未结 3 420
忘了有多久
忘了有多久 2020-12-30 07:17

Recently I\'ve been learning how to program C. For most of the time, I have been using the C version of Eclipse. Recently, I tried out Xcode. I am using a Mac running Mac OS

相关标签:
3条回答
  • 2020-12-30 07:45

    You can change it in Xcode project File. This is my image for tutorial :D Very easy!!! change Organization in Xcode

    0 讨论(0)
  • 2020-12-30 07:48

    UPDATE:

    According to @Michael Dautermann 's comment below, change templates in Xcode.app bundle is not a good way. Check https://stackoverflow.com/a/33743/380774 for more information.


    You can remove or change the header in File Templates, I'm using Xcode 4.3, and the File Templates is in /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates.

    0 讨论(0)
  • Please do not edit files inside Xcode, that will break the application signature and will cause Xcode to refuse to start up after the next restart or so.

    Create an IDETemplateMacros.plist file containing a dictionary with a FILEHEADER key (string) instead.

    You can put the file in

    • for all users on a single project by dropping it in your project's or workspace's xcshareddata folder (e.g. MyAppWorkspace.xcworkspace/xcshareddata/IDETemplateMacros.plist)
    • for yourself for a single project by copying it into e.g MyAppWorkspace.xcworkspace/xcuserdata/YOURNAMEHERE.xcuserdatad
    • global for all projects that you open in your account by dropping the file in ~/Library/Developer/Xcode/UserData/
    0 讨论(0)
提交回复
热议问题