Creating a Custom Code Snippet
- Steps
Open the Code Snippet library.
Select some text in a source file and drag it to the library.
Open the new custom snippet and click Edit.
Give the snippet a name and click Done.

Extend the scope of the Code Snippet library by creating custom snippets. The Code Snippet library provides a number of useful standard snippets. You can add to this collection by creating your own custom snippets.
Code snippets let you enter source text with minimum effort. You can drag a standard or custom code snippet into a source file. You can also type a completion shortcut to enter a snippet.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-01-09)