Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Svelte Code SnippetsNew to Visual Studio Code? Get it now.
Svelte Code Snippets

Svelte Code Snippets

Humble Fool

|
56 installs
| (0) | Free
A collection of basic boiler plate codes that can be used in svelte
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft