如何编辑默认的Xcode模板? [英] How to edit an default Xcode template?

查看:162
本文介绍了如何编辑默认的Xcode模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建一个NSObject子类,我总是得到一个空的实现。有些东西我总是放在我的代码,如pragma marks和-dealloc方法。我更喜欢只是删除我不需要的东西,我不需要写它与打字错误每次我需要它。我需要-dealloc和-init几乎总是,但他们不附带默认模板。

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?

推荐答案

请参阅这个

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

这篇关于如何编辑默认的Xcode模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆