I recently had the misfortune of losing my code snippets in Xcode that was built over the years. I was able to recover some, but can’t believe that I forgot to backup properly. Yeah, talk about monumental screw up.
The snippets are located at ~Library/Developer/Xcode/UserData/CodeSnippets and that should be backed up daily. That’s what I’m now doing.
In case you’re not using snippets, then I highly recommend that you do since they’ll greatly increase your productivity. I know, duh.