All notable changes to the "sveltekit-snippets" extension will be documented here.
Check Keep a Changelog for recommendations on how to structure this file.
- Addresses breaking changes in SvelteKit's load function
- Adds 'contributes' metadate for TS to allow snippet use in .ts files
- TypeScript Endpoints via
kitTsEndpoint
- Removed
{ params }
from Endpoints boilerplate
- Adds
lang=ts
to normal script tag when usingkitModuleTs
Snippet | Output |
---|---|
kitComp | Scaffolds a Svelte component |
ktiCompTs | Scaffolds a TypeScript Svelte component |
kitModule | Scaffolds a SvelteKit module component for a page or layout |
kitModuleTs | Scaffolds a SvelteKit Typescript module component for a page or layout |
kitLayout | Scaffolds a SvelteKit Layout component |
kitPrefetch | Create a sveltekit:prefetch anchor tag |
kitEach | Create a Svelte {#each} block |
kitIf | Create a Svelte {#if} block |
kitAwait | Create a Svelte {#await} block |
kitKey | Create a Svelte {#key} block |
kitTitle | Create a title element in the document head |
kitLoad | Create a SvelteKit Load function |
kitEndpoint | Create a SvelteKit Endpoint |
- To enable intellisense in MD files, add the following JSON to your global settings.json
"[markdown]": {
"editor.quickSuggestions": true,
"editor.wordBasedSuggestions": false
},