* Create Code Snippets: Xcode provides a bunch of these Code Snippets which you can find by opening the Utilities View on the right of your Window. Near the bottom, you 'll find the Code Snippets Library and select it. And it is shown at bottom right.
Example: NSLog(@"%@",NSStringFromCGRect(self.view.frame));
self.view.frame is parametter which can change, so that you will replace "self.view.frame" by "<#description for parametter#>".
it will be NSLog(@"%@",NSStringFromCGRect(<#description for parametter#>));
1. Find some code you 'd like to be a snippets and select it.(figure 1)
2. Drag the selected code to the Snippets Library.(figure 2)
3. It will be added with My Code Snippet's Title at the last record in Code Snippets Library and you select it and click Edit button to Edit(Title, Summary, Platform, Language, Completion Scopes).(figure 3, 4)
3.1. Give it a title and ooptionally a summary. These are used when browsing through the Snippet Library list.
3.2. Choose a completion shortcut to invoke this snippet.
3.3. Chose a platform and language, and Completion scope which lets you choose when the completion shortcut will be available.
Thanks for Reading ! *_*