Skip to content

Instantly share code, notes, and snippets.

@seantunwin
Last active December 6, 2023 18:55
Show Gist options
  • Save seantunwin/ad0797ceb2a206ada80f3227c359d52f to your computer and use it in GitHub Desktop.
Save seantunwin/ad0797ceb2a206ada80f3227c359d52f to your computer and use it in GitHub Desktop.
Vue 3 SFC VSCode Snippet
"Vue 3 SFC": {
"scope": "javascript, typescript, vue",
"prefix": "vue-sfc",
"body": [
"<script setup lang=\"ts\">",
"\t$1",
"</script>",
"\n",
"<template>",
"\t<${2:div}>",
"\t\t",
"\t</${2:div}>",
"</template>",
"\n",
"<style scoped lang=\"scss\">",
"\t",
"</style>"
],
"description": "Vue 3 SFC boilerplate using `setup`, `typescript`, `scss` with `script`, `template`, `style` tag ordering"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment