Snippets

Snippets let you save reusable pieces of code and insert them quickly through the editor’s auto-completion system. They are ideal for boilerplate patterns, utility functions, or any code you find yourself typing repeatedly.

Opening the Snippet Manager

Access the snippet manager by clicking the Snippets icon in the sidebar, or through the menu Tools → Snippets.

Creating a Snippet

  1. Open the snippet manager from the sidebar
  2. Click Add to create a new snippet
  3. Fill in the following fields:
    • Name — A short identifier used to trigger the snippet in the editor (e.g., fetchjson)
    • Description — A brief explanation of what the snippet does
    • Code — The actual code body that will be inserted

Using Snippets in the Editor

Once created, snippets integrate directly into the editor’s IntelliSense. Start typing the snippet name in the editor and it will appear in the suggestions dropdown alongside other completions. Select it to insert the full code body at your cursor position.

Creating a Snippet from Selected Code

You can also create a snippet from code you have already written:

  1. Select the code in the editor
  2. Go to the menu Action → Create Snippet
  3. The selected code is pre-filled as the snippet body — just give it a name and description

This is a fast way to turn any useful piece of code into a reusable snippet without manually copying it.

Managing Snippets

The snippet manager displays all your saved snippets. You can edit or delete any snippet at any time. Snippets persist across sessions and are available in all tabs.

© 2026 QI LEI. All rights reserved.