Changing the default header comment license in Xcode

后端 未结 11 1993
难免孤独
难免孤独 2020-12-04 08:05

Whenever I create a new .cpp/.h file in Xcode a comment is added to the top of the file. For example:

/*
 *  .cpp
 *  
 *
         


        
11条回答
  •  一个人的身影
    2020-12-04 08:31

    It's very simple:

    1. Open up terminal
    2. In one line, write the following:

      defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions -dict ORGANIZATIONNAME "Blah, Inc"
      

    You don't have to worry about changing directories beforehand or anything else. It works instantly.

提交回复
热议问题