To Work with Code Snippets in iLogic

You can edit, delete, replace, or merge custom snippets.

What's New: R2022

Display the Edit Rule Dialog

  1. On the ribbon, click Manage tab iLogic panel iLogic Browser if the browser is not currently displayed.
  2. In the iLogic Browser, do one of the following:
    • Right-click an empty area and select Add Rule.
    • Click the Rules tab or the External Rules tab, right-click a rule, and select Edit Rule.

Work with Favorite Snippets

Copy system snippets to custom snippets

Create Custom Snippet

  1. Highlight the snippet text in the editing window, then right-click and select Capture Snippet.

    The Edit Snippet dialog box displays, with a copy of the snippet text in the Code text box.

  2. Enter the Title of the snippet, to be displayed in the snippets list.
  3. Select the Category in which the snippet is listed, or enter the name of a new category.
  4. Optionally, enter a text string to display as a tooltip when you hover the mouse pointer over the snippet in the list. Click Use Code as Tooltip to place a copy of the snippet text into the tooltip text box, and then edit the text as necessary.
  5. Edit the snippet in the Code text box as necessary. For complicated or long snippets, click the right arrow above the vertical scroll bar on the right to enable automatic outlining.
  6. Click Save or press Ctrl-S to save your snippet.

Snippets are also saved when you click OK in the Edit Rule dialog box. The first time you save custom snippets, you are prompted to choose the save location.

Manage Custom Snippet Categories and Collections

  1. To arrange custom snippets in categories, do any of the following:
    • To create a category, right-click and select Insert Category from the context-menu.
    • To place a snippet into a category, drag it into its proper location within the tree.
    • To rename a code snippet category, select the snippet or category, then right-click and select Rename from the context menu.
    • Use Save As on the toolbar to create different collections of code snippets for specific projects.
  2. To create a custom snippet collection for a specific project, click at the top of the System tab. Specify a filename and location, and click Save to save a copy of all the custom snippets in the list as an external .xml file.

    If necessary, open the saved file using an XML editor and edit the saved snippets.

Edit, Delete, Replace, or Merge Custom Snippets

Move or hide snippets area