Skip to end of metadata
Go to start of metadata

Snippets are small bits of template code that can be inserted while typing. They show up in your list of content assist items. Snippets are similar to "editor templates" in Eclipse parlance but can be contributed via script.

Some key items:

  • trigger: The text needed to trigger the snippet.
  • expansion: The text the trigger will be replaced with. Can contain variables and tab stops.
  • scope: The editors and languages in which this snippet will be active.
  • description: A descriptive text about the snippet. Optional
  • category: A name of a category used to group the snippet with other similar snippets. Optional
  • icon_path: The path to an icon that represents the snippet. Optional
  • tags: Keywords that describe the snippet. Used as a means to easily filter snippets. Optional

Typing part of the trigger will show the snippet in content assist. If the trigger phrase is unique, typing the whole trigger + the Tab key will automatically insert the snippet into the document, otherwise, you will be prompted to pick one of the available options.

If you instead want to modify an existing piece of content (say to modify the current selection in the editor), you'll want to look at creating a command instead.


You'll need to create a new Ruble as a placeholder for any new content.


  • No labels