Reputation: 12549
How can one save / restore user created code snippets in Xcode?
Upvotes: 6
Views: 2547
Reputation: 3672
The user generated code snippets are saved in
~/Library/Developer/Xcode/UserData/CodeSnippets
And you can simply pass them around to save and restore them. I recommend giving them a meaningful name instead of the generated one.
I wrote a short explanation about it here, and also started a collection of useful code snippets that can be shared on github. There are still very little snippets there, so any useful snippets you have to share would be great.
Upvotes: 14