To create snippets, you use the Snippet Editor, which you access from the toolbar for the Editor:
Save button: Saves the snippet to the path specified.
Name input field: Specifies the name or both the folder and name to which to save the snippet. Examples follow:
To save a snippet named
Quick Add
to the root folder for snippets, the name input field would look like this:Note: Root folder refers to the place where you start out when browsing snippets. For reference, the snippet
ExtAPI
is in the root folder.To save this same snippet to the folder
Examples
, the name input field would look like this:Note: When you click an existing folder, the Snippet Manager inserts the path to this folder in the name input field so that the snippet will be saved to this folder. You can also manually type the path to the folder.
Description: Describes what your snippet does.
Content area: Where you write the snippet that is to be inserted when the snippet inserter is used.
Snippet Manager: Opens a view where you can manage your snippets.
Descriptions follow for the two buttons in the lower left corner of the Snippet Manager:
Import snippet collection: Opens a dialog box for you to select the snippet collection file. The Snippet Manager supports XML and JSON files. The XML files can be files that were exported using the ACT Console. The JSON files are snippet collections that are imported using the Snippet Manager. Importing snippet collection files will add the snippets that they contain to your existing snippets.
Export snippet collection: Exports all snippets in the Snippet Manager to a JSON file.
Note: The Snippet Manager displays the Click To Add Folder option as the last node In every folder. You can click this option to create a new folder in the current folder.
The other options available to you in the Snippet Manager depend on whether you place the mouse cursor over a snippet or a snippet folder.
When you place the mouse cursor over a snippet, buttons are available for either editing or deleting the snippet:
Edit snippet: Opens the snippet in the Snippet Editor so that you can view and make changes to the snippet.
Delete snippet: Deletes the snippet.
Caution: Deleting a snippet from the Snippet Manager also removes it from the snippet inserter.
When you place the mouse cursor over a folder, buttons are available for browsing the folder and either editing or deleting the folder:
Browse folder: Expand the folder to browse the snippet collection.
Edit folder: Makes the folder name editable so that you can change it.
Delete folder: Deletes the folder.
Caution: Deleting a folder deletes all of its contents.