Skip to content

JaviLorbada/JLXcode-Snippets

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

JLXcode-Snippets License MIT

A bunch of snippets for Xcode

Installing Snippets

To install snippets just copy *.codesnippet files into folder: ~/Library/Developer/Xcode/UserData/CodeSnippets/

Using Snippets

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

Cheat Sheet

  • Animation Block - animBlock
  • Animation Block with Options - animFullBlock
  • Block: Method - blockMethod
  • Deprecated - deprecated
  • DLog #define Statements - DLogState
  • Method Documentation Comment - methodDoc
  • GDC: Dispatch Async - dispatchAsync
  • GDC: Dispatch Sync - dispatchSync
  • Method - method
  • Notification: Add Observer - notificationAddObserver
  • Notification: Post - notificationPost
  • Notification: Post with User Info - notificationPostWithUserinfo
  • Notification: Remove Observer - notificationRemove
  • NSAssert - assert
  • NSAssert for Blocks - assertBlocks
  • NSString with format - strFormat
  • Pragma mark - pragmaMark
  • Property NSArray - pArray
  • Property Class - pClass
  • Property NSDictionary - pDict
  • Property NSNumber - pNumber
  • Property String - pString
  • Singleton Instance - singleton
  • Strongself - strongself
  • UDID Generator - udidCreate
  • UIImage imageNamed: - inamed
  • UITableView Delegates - tableViewDel
  • Weakself - weakself

Credits:

Thanks to @mneorr and his project snippie in order to generate the cheatsheet and the readable_snippets folder.

Thanks to @schukin and his project Fucking Block Syntax Autocompletion.

License:

All the snippets are released under a MIT-License. See License file for more info.

Contact:

About

A bunch of snippets for XCode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published