|
The Source Editor supports the snippet file format of Microsoft Visual Studio 2005. Snippet files contain frequently used code constructs. The code in snippet files can be in any language. Code snippets can be added to custom code in the Source Editor by clicking the Code Snippets button . To add a code snippet, follow these steps:
| 1. | Position the cursor in a User Codeblock where you want to add the code snippet. |
| 2. | Click the Code Snippets button , a dropdown list of available code snippets appears above the code in the Source Editor. You can cancel the code snippet utility by hitting the Escape key. |
| 3. | Locate the code snippet you want to use in the list. Typing the first letters of the code snippet's name can help you find it. You can also use the Up and Down arrow keys on you keyboard. |
| 4. | Double click the code snippet in the list, or hit Enter to add the code snippet to the source code. |
Current limitations
 | Only C# code snippets are supported. |
 | Code snippets can not be managed in GenWise Studio. |
Currently code snippets can be managed by organizing the .snippet files in the following directory:
<GenWise program directory>\Bin\Snippets\C#
|