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
- Install Visual Studio Code 1.57.0 or higher
- Launch VS Code
- Launch the command palette by using
Ctrl-Shift-P (Windows, Linux) or Cmd-Shift-P (OSX)
- Type in Install Extension and select 'Extensions: Install Extensions'
- Type
Svelte Snippets
- Choose the extension from the drop-down
- Reload Visual Studio Code
Release Notes
1.0.2
Svelte Snippets.
Source
Github
X
| |