GithubHelp home page GithubHelp logo

bellyabc123 / xcode-snippets-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hlung/xcode-snippets

0.0 2.0 0.0 240 KB

My collection of useful Xcode code snippets! It has been a great time-saver for me so I decided to share it with everyone :)

xcode-snippets-1's Introduction

Xcode Snippets

My collection of useful Xcode code snippets! It has been a great time-saver for me so I decided to share it with everyone :)

Using these Snippets

  • Go to your Xcode user's code snippets directory. Create one if it doesn't exist. open ~/Library/Developer/Xcode/UserData/CodeSnippets
  • In that folder, you can either:
    • run git init, then git pull https://github.com/hlung/Xcode-Snippets to that folder (recommended, easy update), OR...
    • download ZIP of this repo, extract .codesnippet files to that folder
  • Restart Xcode.
  • Enjoy!

Note: Each code snippet has a unique IDECodeSnippetIdentifier key, which Xcode generates when I created each snippet. There's a small chance that they will collide with your existing snippets. Fingers crossed.

Creating your own Snippets

In Xcode 4 or 5, 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.

Highlight your code block and drag it to the Code Snippet panel. Make sure to match the suggested platform, language, and completion scope.

License

WTFPL

xcode-snippets-1's People

Contributors

hlung avatar

Watchers

AAA avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.