svelte-snippets Svelte Themes

Svelte Snippets

svelte-snippets

This extension provides the standard svelte boilerplate code for General usage.

Features

Type '!t' or '!ttl' in a svelte file and select the snippet from the auto-suggestion dropdown to get the svelte boilerplate to get started quickly.

Snippets

Comand Description
!t Basic template for svelte
!tts Basic template with language typescript
!tl Basic tempalate with slot
!ttsl Basic template with language typescript and slot
!lifecycle-mount onMount lifecycle function
!lifecycle-destroy onDestroy lifecycle function

Installation

  1. Install Visual Studio Code 1.57.0 or higher
  2. Launch VS Code
  3. Launch the command palette by using Ctrl-Shift-P (Windows, Linux) or Cmd-Shift-P (OSX)
  4. Type in Install Extension and select 'Extensions: Install Extensions'
  5. Type Svelte Snippets
  6. Choose the extension from the drop-down
  7. Reload Visual Studio Code

Release Notes

1.0.2

Svelte Snippets.

Source

Github X

Top categories

Loading Svelte Themes