Git Product home page Git Product logo

vscode-svelte-snippets's People

Contributors

d2s avatar dv336699 avatar garygrossgarten avatar karsten7 avatar marcjulian avatar mlbiche avatar subz390 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vscode-svelte-snippets's Issues

s-bind-video s-bind-audio snippets

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>

[Feature Request] s-docs snippet for svelte component documentation comments

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?

Setting to use Typescript

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".

Outdated

please add me to repo as collaborator to update it to Svelte 5, is it even possible? like can extension name changed after publish?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.