Skip to content

Instantly share code, notes, and snippets.

@chi-putera
Last active March 27, 2025 14:03
Show Gist options
  • Select an option

  • Save chi-putera/7c5c0ac7396e56c45011f46612cd7b65 to your computer and use it in GitHub Desktop.

Select an option

Save chi-putera/7c5c0ac7396e56c45011f46612cd7b65 to your computer and use it in GitHub Desktop.
Vscode Vue TS Snippet
{
"Vue TS Template": {
"prefix": "vts",
"body": [
"<template>",
" <div></div>",
"</template>\n",
"<script setup lang=\"ts\">",
"import { defineComponent } from 'vue'\n",
"interface Props {}\n",
"defineOptions({ name: '$1' })\n",
"defineProps<Props>()",
"</script>\n",
"<style lang=\"sass\">",
"</style>\n",
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment