https://github.com/johnsundell/blocksnippets
Xcode snippets that are very handy when working with blocks in various contexts
https://github.com/johnsundell/blocksnippets
Last synced: 7 months ago
JSON representation
Xcode snippets that are very handy when working with blocks in various contexts
- Host: GitHub
- URL: https://github.com/johnsundell/blocksnippets
- Owner: JohnSundell
- License: mit
- Created: 2014-03-08T08:42:49.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-19T17:58:18.000Z (over 11 years ago)
- Last Synced: 2025-01-22T13:26:35.068Z (9 months ago)
- Size: 180 KB
- Stars: 51
- Watchers: 7
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
BlockSnippets
=============#### Xcode snippets that are very handy when working with blocks in various contexts
Hard to remember all those different ways to type a block in Objective-C, isn't it?
Just install these snippets and you can type ```BLOCK``` anywhere to auto-complete with a block syntax fit for the context you're currently in.
#### Installing
##### Option A: Get the snippets using this command line one-liner:
```$ zsh -c 'unzip -ouj -d ~/Library/Developer/Xcode/UserData/CodeSnippets/ =(curl -L https://github.com/JohnSundell/BlockSnippets/zipball/master) "*.codesnippet"'```
The above will download a zip archive of this repo, and move the files into your CodeSnippets folder that Xcode reads from.
##### Option B: Clone & Move the files manually:
After you've cloned the repo, here's how to get these snippets into Xcode:
1. Drag the .codesnippet files into ```~/Library/Developer/Xcode/UserData/CodeSnippets/```
2. Restart Xcode
Congratulations, you're done! Now, try typing ```BLOCK``` anywhere in the editor (where a block can be put).
#### Hope that you'll enjoy using these snippets!
Why not give me a shout on Twitter: [@johnsundell](https://twitter.com/johnsundell)