Skip to content

Instantly share code, notes, and snippets.

@cristian-frumusanu
Last active August 21, 2020 07:36
Show Gist options
  • Save cristian-frumusanu/c6038dd6fac37e49f22bcbdfb6df8aaf to your computer and use it in GitHub Desktop.
Save cristian-frumusanu/c6038dd6fac37e49f22bcbdfb6df8aaf to your computer and use it in GitHub Desktop.
VS Code Snippets: Vue.js + TypeScript
{
"Vue.js Component": {
"prefix": "vue-component",
"body": [
"import { Vue, Component } from 'vue-property-decorator';",
"",
"@Component",
"export default class $1 extends Vue {",
"",
"}"
],
"description": "Create Vue.js component with decorator"
}
}
{
"Vue.js .vue file with TypeScript": {
"prefix": "vue-file",
"body": [
"<template>",
"\t<div>",
"\t</div>",
"</template>\n",
"<script lang=\"ts\" src=\"./$1.ts\"></script>\n",
"<style lang=\"scss\" src=\"./$1.scss\"></style>\n",
],
"description": "Create base .vue file with TypeScript and SCSS"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment