Svelty Snippets
This extension is providing you with common snippets to use in .svelte files
Features
Svelte
Snippet |
Description |
svbase |
Single file component base |
svif |
Svelte {#if} {/if} block |
svifelse |
Svelte {:else}block |
svelif |
Svelte {:else if} block |
sveach |
Svelte {:else if} block |
sveach |
Svelte {#each} block |
sveachk |
Svelte {#each (key)} block |
sveachik |
Svelte {#each ,index (key)} block |
svawait |
Svelte {#await}...{:then}...{:catch}...{/await} block |
svdispatch |
Svelte createEventDispatcher import line |
JavaScript
[TBU]
CSS
[TBU]
HTML
[TBU]
Requirements
My assumption is that you are using Svelte Beta plugin from the marketplace to provide support for .svelte files.
Known Issues
There are a lot of snippets missing, and I will try to add them regularly on our way to 1.0 release.
Release Notes
0.0.1
- Initial release of Svelty snippets
Enjoy!
| |