Creating a Snippet of Source Code
You can quickly create a snippet to reuse source code.
To create a snippet of source code
1. On the toolbar of the design canvas, click Source.
2. Scroll to the location in the source code that contains the code for the snippet, and then select the code.
3. Right-click the selected code, and then click Add to Snippets.
4. In the New Category dialog box, select a drawer or type the name for a new drawer, and then click OK.
5. In the Customize Palette dialog box, under Name, type a name.
6. In the Description text box, type a description, and then click OK.