You can browse snippets from my xcode-arsenal in the readable_snippets directory above.
Below is the auto-generated cheat-sheet from your own exported snippets. It's created every time you back up your snippets and push to git.
Fork the repository, to be able to export your own snippets and cheat-sheet.
You can save the repository wherever you want.
$ git clone git@github.com:mneorr/xcode-snippets-manager.git xcode-snippets
$ cd xcode-snippets
$ bundle install
$ rake backup
This will clear my snippets, and put yours in the repository.
It will also generate readable snippets in the readable_snippets dir. And, it will re-create this file.
After you do backup, commit
and push
, and you should have your fork up and ready.
The cheat-sheet will be updated as well.
The simplest thing you can do is:
$ rake import
It should not duplicate the same snippets.
However, if you want to clear the existing snippets, and use the fresh ones, you may want to use
$ rake clean_import
- Memory Warning -
memw
- pragma mark -
pm
- Autolayout UIView -
autolayout uiview
- Test Init -
testinit
- dispatch_async Pattern for Background Processing -
async
- Class Continuation -
continuation
- Documents Directory Path -
documents
- UIView Animation -
viewani
- Autolayout Controller -
autolayout controller
- NSFetchedResultsControllerDelegate -
frcd
- ImageView -
imv
- init -
init
- KVO Setter -
kvo
- Library Directory Path -
library
- UIViewController Lifecycle -
lifecycle
- MFMailComposeViewController Initialization & Delegate -
mailcomp
- #pragma Mark -
mark
- NSLocalizedString -
nsl
- Shared Singleton -
shared
- Log Stack Trace -
stack
- __strong self -
strongself
- UIControlEventTouchUpInside -
tu
- UITableViewDelegate -
tvdel
- UITableViewDataSource -
tvds
- __weak self -
weakself