From 5e904cc921d31b4e1c5c9ce55565ee0e36e4e696 Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Wed, 15 Jul 2015 12:53:21 -0400 Subject: [PATCH 1/2] Updated README with instructions for batch installing --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fbf6c59..d97965d6 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,21 @@ Just a few code snippets I have in my Xcode arsenal. In [dotfiles](http://dotfil In Xcode 4, 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. \ No newline at end of file +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. + +## Installing all Snippets + +To get started, install the xcodesnippet gem. + +``` +$ gem install xcodesnippet +``` + +Once installed, navigate to the directory where the snippets repository has been cloned and run + +``` +for f in *.m; do xcodesnippet install $f; done +``` + +This will batch process all of the snippets available in the repository and add them to Xcode. + From 506902632e91b01708f235a260433bb02123fc4b Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Wed, 15 Jul 2015 12:54:19 -0400 Subject: [PATCH 2/2] Updated header --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d97965d6..073b6b74 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ In Xcode 4, open a workspace and toggle the right sidebar to be visible. On the 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. -## Installing all Snippets +## Installing All Snippets To get started, install the xcodesnippet gem.