How to edit an default Xcode template?

亡梦爱人 提交于 2019-12-20 03:17:16

问题


When I create an NSObject subclass, I always get an empty implementation. There are some things I always put in my code like pragma marks and -dealloc methods. I prefer to just delete stuff that I don't need over writing it with typos from scratch every time I need it. I need -dealloc and -init almost always, but they don't ship with the default template. Is there a way to customize what's in there?


回答1:


Take a look at this article that describes how to create user defined templates in xcode.




回答2:


I've also created a description on how to do this, this tutorial was based on Xcode 3.2.2 and 3.2.3 (beta at the time of writing):

http://www.sodeso.nl/?p=895



来源:https://stackoverflow.com/questions/1285221/how-to-edit-an-default-xcode-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!