Clone the contents of this repository into ~/Library/Developer/Xcode/UserData/CodeSnippets
and restart XCode. Snippets should appear in the Code Snippet Library.
- Copy
codesnippet.template
toyour-snippet-name.codesnippet
- Using
your-snippet-name
as theCODESNIPPET FILENAME
, fill out the template - Restart Xcode
- Run
rename_snippet.sh
from the code snippet directory with the format:rename_snippet.sh <full_base_64_snippet_filename> <new_filename>
full_base
filename should contain.codesnippet
new_filename
filename should not contain.codesnippet
- Add your new snippet to the repo and restart XCode.