Skip to content

Abizern/xcode-snippets

Repository files navigation

xcode-snippets

Swift 2 snippets for Xcode

Just a few for the moment, based on those by Matt Thompson at https://github.com/Xcode-Snippets/Objective-C

Installing The Snippets

Manually

In Xcode 7, open a workspace and toggle the right sidebar to be visible. On the bottom, there is a panel with four icons in the header. Click on the { } icon to open the Code Snippets Library.

Now copy-paste the code from one of these snippets, highlight the code block you just pasted and drag it to the Code Snippet panel. Make sure to match the suggested platform, language, and completion scope. The completion shortcut corresponds to the filename of the code snippet.

Using the xcodesnippet gem

by @mattt, does the guy ever sleep?

First, install the gem gem install xcodesnippet

Then install the snippet you want with:

xcodesnippet install path/to/file

About

Xcode Snippets for Swift 2, based on those by Mattt at https://github.com/Xcode-Snippets/Objective-C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages