<p>In the Script Editor you can use and create code snippets, which are small blocks of reusable code that you can insert where you need it in your code.</p>
Alternatively, type the name of a snippet (or place the cursor at the end of already existing one), then press the <strong>Tab</strong> key to expand it.<br/><br/>
<strong>Example:</strong> to create the while loop, type "<strong>while</strong>", then press the <strong>Tab</strong> key:<br/>
There are several special tokens you can use: </p>
<ul>
<li><strong>[EP]</strong> (Entry Point) - that's the place where the cursor will be placed after inserting a snippet.</li>
<li><strong>[LB]</strong> (Line Break)
- these will be converted to line breaks when "<strong>Allman-style bracing in snippets</strong>" (located in Preferences -> Appearance -> Script Editor) setting is enabled, or a space character when it's not.
</ul>
<spanclass="style1">Warning:</span> snippet's file name must not contain spaces.
<p><strong>Creating new code snippets for custom scripting configurations:</strong><br/>
To add snippets to a scripting configuration, which doesn't already have existing snippets ("Insert a Code Snippet" drop-down is disabled in the Script Editor), you'll have to:</p>
<ol>
<li>Add a new folder inside of "Snippets" folder (for example, "[GZDB]\Snippets\Decorate").</li>
<li>Add the "<strong>snippetsdir</strong>" parameter to a scripting configuration, in which you want to use snippets, and set it to the folder name you've just created (for example, <strong>snippetsdir = "Decorate";</strong>).</li>
<li>Add the snippets to the folder you've created.</li>