Skip to Content
DocumentsCoreSnippets

Snippets

Snippets are short abbreviations that expand into full content: plain text, rich text (HTML), or executable scripts (Pro). A few letters + trigger key → full block. Template variables like {{date}}, {{clipboard}} (Pro) are replaced on expand. See FillIn & variables.


How to expand snippets

  • Abbreviation & trigger — Type abbreviation + trigger (default Tab, or Space/Enter etc.) to expand; works in any text field.
  • Trigger key: Tab, Space, Enter, Alt, ., ,, ;, -, /, = configurable; “require trigger to expand” recommended to reduce accidents.
  • Shortcuts (Pro): Global main/search, create from clipboard, new snippet, edit last expanded, expand last again; per-snippet global shortcut. See Settings → Shortcuts.

Groups & Multi-file

  • Tree groups + prefix: e.g. all under ai- expand as ai-xxx; manage many snippets by scenario. See Introduction · Snippets.
  • Multi-file snippets: One snippet, multiple “files” (language/env), each with its own abbreviation and content; maintain once, expand everywhere.

Only in Selected Apps ᴾᴿᴼ

ExpandIn — Expand only in VS Code, browser, etc.; no trigger in chat or web inputs. For heavy expand in IDE/browser without accidents elsewhere.


FillIn & Template Variables

  • FillIn variables — Popup on trigger: single/multi-line, dropdown, checkbox, %date%, cursor %c%, clipboard %cv%, nested %s:abbr%; great for prompts and parameterized templates.
  • Snippet template variables (Pro) — In content: {{date}}, {{time}}, {{clipboard}}, {{cursor}}, {{input}}; replaced on expand.
  • Snippet type & execution (Pro) — Plain / rich / script (JS, Shell, Python, AppleScript, PowerShell); script type runs on trigger and outputs; no switching to terminal to paste.