Creating and Removing Snippets

In Flamingo IDE, you can create and delete snippets.

Creating Snippets

You can use Snippet Manager or Filter Manager to create a snippet.

Creating Snippets in Snippet Manager

To create a snippet using Snippet Manager:

  1. Click Snippet Manager on the left sidebar.

  2. Click New Snippet.

  3. Enter snippet name.

  4. Click OK.

  5. Edit snippet description in the Description field.

  6. Click Edit Snippet to edit its code.

Creating Snippets in Filter Manager

In filter-based projects, you can create a snippet directly from Filter Manager and use it in a filter rule. To do that:

  1. Click Filter Manager on the left sidebar.

  2. Expand the filter to which you need to add a snippet.

  1. Select the action in the Processing field that requires snippet usage (Replace by Snippet, Add Snippet Before, Add Snippet After, Prepend Snippet, Append Snippet).

  2. Click the Open Snippet button in the Output field.

  3. Type the name of the new snippet in the Search snippet field.

  4. Click Create.

  5. Specify the snippet code in the text field that appeared.

  6. Click Save.

Removing Snippets

To delete a snippet, you should:

  1. Click Snippet Manager.

  2. Click the snippet you need to delete to open its properties.

  3. Click Delete.

  4. Click Yes to delete the snippet.