Sync Xcode code snippets using Dropbox
You probably know that you can add your own code snippets in Xcode 4.
Those snippets are stored in ~/Library/Developer/Xcode/UserData/CodeSnippets
. You can create a symlink in your Dropbox folder to keep your snippets backed up and synced with your other computers:
ln -s ~/Library/Developer/Xcode/UserData/CodeSnippets ~/Dropbox/XcodeSnippets
(replace ~/Dropbox/
with your actual Dropbox folder location)
Written by Zoreslav Khimich
Related protips
2 Responses
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/55704/Me_1.png)
This way you should always restart Xcode if you modify snippet. There is a much better way to manage and sync snippets in Xcode. It is Snippets http://snippets.me/. Check out this demo http://www.youtube.com/watch?v=0qzsVhKqOHw. You can edit and manage your code snippets in Snippets, sync between your computers and using Snippets Distributor for Xcode push them to the Xcode without needing to restart it.
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/39333/326ea948504914f33fc337e0b3a68b13.jpeg)
Nah, doesn't look "much better", thanks for sharing.