A bunch of snippets for XCode
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
readable_snippets
.gitignore
Block_Animation.codesnippet
Block_Full_Animation.codesnippet
Block_Method.codesnippet
DLog_Define.codesnippet
Deprecated.codesnippet
Documentation_Comment.codesnippet
GDC_DispatchAsync.codesnippet
GDC_DispatchSync.codesnippet
LICENSE
Method.codesnippet
NSAssert.codesnippet
NSAssert_Block.codesnippet
NSString_with_format.codesnippet
Notification_Observer.codesnippet
Notification_Post.codesnippet
Notification_Post_Userinfo.codesnippet
Notification_Remove.codesnippet
Pragma_Mark.codesnippet
Property_Array.codesnippet
Property_Class.codesnippet
Property_Dictionary.codesnippet
Property_Number.codesnippet
Property_String.codesnippet
README.md
Singleton_Instance.codesnippet
Strongself.codesnippet
UDID_Create.codesnippet
UIImage_imageNamed.codesnippet
UITableViewDelegates.codesnippet
Weakself.codesnippet
fuckingBlockMethod.codesnippet
fuckingBlockProperty.codesnippet
fuckingBlockTypedef.codesnippet
fuckingBlockVariable.codesnippet

README.md

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: