Using a Snippet for Source Code
You can use a snippet to quickly reuse source code.
To use a snippet for source code
1. On the toolbar of the design canvas, click Source.
2. Scroll to the location in the source code to insert the snippet code.
3. On the Snippets view, expand the drawer that contains the snippet.
4. Drag the snippet into the source code, position the cursor at the insertion point, and then drop the snippet.