Code SnippetsCode snippets are selections of frequently-used code. They can be stored in the Toolbox or the Project Manager, and quickly inserted into the current document. Creating SnippetsTo create a code snippet, select the desired block of text in the editor pane. Then drag and drop the selected section to the Toolbox or the Project Manager. Alternatively, select the desired text, then right-click and select Add as Snippet in the Toolbox. Alternatively, right click in the Toolbox or on a project or folder name in the Project Manager and select Add Snippet. If you use this method, you must manually enter the contents of the snippet; text selected in the editor pane will not be automatically added to the snippet dialog. Configuring SnippetsTo configure snippet properties, right-click the snippet in either the Toolbox or the Project Manager, and select Properties. The following configuration properties are available:
Using SnippetsTo insert the contents of a snippet at the current cursor position in the editor pane, double click a snippet in either the Toolbox or the Project Manager. Alternatively, right-click the snippet and select Insert Snippet. Snippet Key Bindings![]()
|