I keep forgetting how to create my own Code Snippets for easy use in Xcode projects. It is actually ultra simple:
- write some code you’d like to use again
- highlight it
- drag the highlighted section into the Code Snippets library
- that’s it!
To edit the description of your new snippet, single-click it in the Code Snippets Library pane, and up comes a handy dialogue box. Click edit and amend to your heart’s content.