Skip to content

Instantly share code, notes, and snippets.

@adydetra
Last active May 28, 2024 11:03
Show Gist options
  • Save adydetra/0f3bb1e9717a48b6ce568d1d2fcc85e2 to your computer and use it in GitHub Desktop.
Save adydetra/0f3bb1e9717a48b6ce568d1d2fcc85e2 to your computer and use it in GitHub Desktop.
{
"import": {
"scope": "javascript,typescript",
"prefix": "imp",
"body": [
"import { $1 } from '$2';"
],
"description": "Import a module"
},
"define-props": {
"scope": "javascript,typescript",
"prefix": "define",
"body": [
"defineProps<{",
" // ? = any",
" title$1?: string;",
"}>();"
],
"description": "Define Props"
},
"vue-script-setup": {
"scope": "vue",
"prefix": "<script",
"body": [
"<script setup lang=\"ts\">",
"$1",
"</script>"
]
},
"vue-template": {
"scope": "vue",
"prefix": "<temp",
"body": [
"<template>",
" <div>",
" <slot />",
" </div>",
"</template>"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment