fivethree-team / vscode-svelte-snippets Goto Github PK
View Code? Open in Web Editor NEW🧩 Svelte 3 Snippets for VS Code
Home Page: https://marketplace.visualstudio.com/items?itemName=fivethree.vscode-svelte-snippets
License: MIT License
🧩 Svelte 3 Snippets for VS Code
Home Page: https://marketplace.visualstudio.com/items?itemName=fivethree.vscode-svelte-snippets
License: MIT License
I just notice the s-bind-video
snippet is missing quite a lot of parameters, and there's no s-bind-audio
snippet
https://svelte.dev/docs#Media_element_bindings
<video
src={clip}
bind:duration
bind:buffered
bind:played
bind:seekable
bind:seeking
bind:ended
bind:currentTime
bind:playbackRate
bind:paused
bind:volume
bind:muted
bind:videoWidth
bind:videoHeight
></video>
<audio
src={clip}
bind:duration
bind:buffered
bind:played
bind:seekable
bind:seeking
bind:ended
bind:currentTime
bind:playbackRate
bind:paused
bind:volume
bind:muted
></audio>
{#each items as item}
{/each}
great extension but we have to remove the comment and then code inside it so maybe remove the "" comment
when i type s-class-short
, it outputs like this: class:name}
So apparently you can do jsdoc style doc comments in svelte components. It was an undocumented feature, sveltejs/svelte#7376 (Still not merged when I wrote this issue).
Would be cool to see a s-docs
snippet that does something like this:
"Svelte Documentation Comment": {
"prefix": "s-docs",
"body": [
"<!--",
" @component",
" ${1:This is a component description.}",
"-->"
],
"description": "Svelte Documentation Comment"
}
On a side note, any thoughts about adding lang="${1:ts}"
to the script snippet?
Would be awesome if you could add a extension setting flag that would toggle Typescript so when you use for example "s-script" it would add the lang="ts".
For the Svelte ESLint VSCode plugin, the recommendation is to set the files.associations
setting so that .svelte
files are associated as HTML files. Doing this means typing s-
for this plugin does not work. Is there a way to enable this plugin on HTML files as well?
please add me to repo as collaborator to update it to Svelte 5, is it even possible? like can extension name changed after publish?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.