简体   繁体   English

自定义Xcode片段库

[英]Customize Xcode snippet library

Thank you for reading my question. 感谢您阅读我的问题。

I want to customize my Xcode snippet library. 我想自定义我的Xcode片段库。

I've read this article. 我读过这篇文章。 http://www.icodeblog.com/2011/12/06/using-xcode-4-snippets/ http://www.icodeblog.com/2011/12/06/using-xcode-4-snippets/

Now I want to customize my comment that insert date(today) automatically after my comment text. 现在我想自定义我的评论,在评论文本后自动插入日期(今天)。

ex: 例如:

//This is my comment --- 2012/05/15

The date(2012/05/15) is automatically generate by Xcode. 日期(2012/05/15)由Xcode自动生成。

Is this possible thing? 这可能吗?

PS My Xcode version is 4.3.2 PS我的Xcode版本是4.3.2

Thank you. 谢谢。

As a snippet? 作为一个片段? Not possible. 不可能。 However, you can easily create a Service in Automator that calls date +%Y-%m-%d . 但是,您可以轻松创建的Automator一个服务调用date +%Y-%m-%d

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM