Customize Xcode snippet library
Asked Answered
C

1

7

Thank you for reading my question.

I want to customize my Xcode snippet library.

I've read this article. 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.

Is this possible thing?

P.S. My Xcode version is 4.3.2

Thank you.

Coeducation answered 15/5, 2012 at 8:28 Comment(3)
did you get the answer or any solution. Please post it here. Thanks in advance.Apprentice
Hi Nikh141, unfortunately I haven't found any good enough solution for me. Check this link:#15746105 It may be helpful for you.Coeducation
The link in the article no longer works. I think it's a good idea to edit the question in case there are new solutions for this.Ietta
A
0

As a snippet? Not possible. However, you can easily create a Service in Automator that calls date +%Y-%m-%d.

Adelaidaadelaide answered 21/12, 2013 at 22:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.