Tagged Questions
0
votes
0answers
21 views
XCode snippet with automatically generated date and correct tabs
I've got a question regarding code snippets in XCode. I'm using them a lot, but there are 2 things that bother me since using them:
How can I add a placeholder for an automatically generated date? ...
0
votes
1answer
42 views
Backup Code Snippets for Xcode 4.6
I've been searching for backing up user code snippet for Xcode, and i got this below which is only for system snippets!
For Xcode's self contained app. This is the exact file path of the
default ...
0
votes
1answer
40 views
Using Code Snippets in Class Extensions - shortcut won't work
I've got a code snippet I made and works perfectly when adding properties to my .h file.
But I don't want many of my properties in my .h because they should be internal only. So I head into the .m ...
3
votes
2answers
153 views
Add time and date in custom/user Code Snippet in XCode
How can I add date time in my custom code snippet?
I need frequent use to add my codes on other codes, and for others, I need to add my name and date time.
I created a code snippet with shortcut ...
2
votes
0answers
78 views
Reuse variable name when inserting an Xcode snippet [duplicate]
I'm making a snippet to make UILabels faster. In this snippet I really just want to set the variable name once and then use it later when setting the color and background color. How can I reuse what I ...
1
vote
1answer
140 views
Xcode code snippet for class continuation?
I have an Xcode (4.6) code snippet for creating properties – one for weak, one for strong properties:
Typing propstrong works nicely in the interface declaration (.h file), but doesn’t offer me the ...
0
votes
2answers
290 views
Create fast shortcuts for Snippets in XCode
I'm using the german keyboard layout and so the different brackets (), [], {} are not "fluently" reachable while programming. I tried the US Layout but didn't like it either. So I came up with a ...
0
votes
1answer
43 views
visual studio code snippet stubs
Does VS have a code snippet feature, where you can insert a placeholder/stub/token in a snippet, where after expanding the initial shortcut, allows you to tab across the tokens?
If you are familiar ...
3
votes
0answers
166 views
Customize Xcode snippet library
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 ...
2
votes
1answer
405 views
insert double quotes around selected text in xcode
Is there a keystroke to add double quotes around a selection in xcode?
I have snippets @"<#string#>" (qt) and @"<#string#>"<#, #> (qtc)(for making a list in array I use keystroke ...
0
votes
2answers
80 views
iPhone : what the best way to integrated iPhone application to other application?
I want to reuse iPhone source code application with other application, so in Xcode iPhone does it be able build library .jar file?
3
votes
1answer
1k views
Saving code snippet library in xcode
How can one save / restore user created code snippets in Xcode?
28
votes
1answer
1k views
Replace parameter multiple times in Xcode code snippets
Can I create a custom snippet that takes a parameter that is replaced multiple times inside the code?
I tried something like:
<#class#> instanceOf<#class#>;
but it doesn't replace both ...
6
votes
4answers
1k views
21
votes
9answers
1k views
Short and useful Objective-C snippets?
Since XCode 4, there is now a Code Snippets section which offers the snippets via auto-complete when typing. I'd be very interested in snippets you all have stored in there. What snippets save you the ...