17

I know where the system default snippets are, but my two new ones cannot be found. Basically, I want to add in my collection of previous snippets. I made two new ones just to be able to find them. Didn't work. Any suggestions?

malaki1974
  • 1,605
  • 3
  • 16
  • 32

2 Answers2

37

Custom code snippets are stored in the following location:

/Users/YourUsername/Library/Developer/Xcode/UserData/CodeSnippets
Swift Dev Journal
  • 19,282
  • 4
  • 56
  • 66
  • 1
    That doesn't work for me in Xcode 10, though it did for Xcode 9 – Adrian Aug 20 '18 at 02:21
  • @Adrian I haven't used the Xcode 10 betas. I recommend writing a new question. – Swift Dev Journal Aug 20 '18 at 19:26
  • Looks like they moved the access point around to it, but it's pretty much the same. https://www.youtube.com/watch?v=edKpCAWbPFA&vl=en One note, based on recently getting a new MBP is you might need to create a snippet to generate that directory...once you've created a snippet, that directory gets created and you can drop more snippet files into it. – Adrian Aug 21 '18 at 04:01
3

I used this for Catalina 10.15.5

~/Library/Developer/Xcode/UserData/CodeSnippets
uplearned.com
  • 3,393
  • 5
  • 44
  • 59