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 [email protected]: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
- UIViewController Lifecycle -
lifecycle
- NSLocalizedString -
nsl
- UITableViewDataSource -
tvds
- UITableViewDelegate -
tvdel