vscode中vue单文件组件快捷初始化模板:vue+tab

{
    "Print to console": {
        "prefix": "vue",
        "body": [
            "<template>",
            "<div>\n",
            "</div>",
            "</template>\n",
            "<script>",
            "export default {",
            "  name: '',",
            "  props: [],",
            "  components: {},",
            "  data () {",
            "    return {}",
            "  },",
            "  computed: {},",
            "  methods: {},",
            "  watch: {},",
            "  beforeCreate () {},",
            "  created () {},",
            "  beforeMount () {},",
            "  // mounted () {},",
            "  beforeUpdate () {},",
            "  updated () {},",
            "  activated () {},",
            "  deactivated () {},",
            "  beforeDestroy () {},",
            "  destroyed () {},",
            "  errorCaptured () {},",
            "}",
            "</script>\n",
            "<style scoped lang=\"${1:less}\">\n",
            "</style>\n",
        ],
        "description": "Create vue template"
    }
}

  

posted @ 2021-04-25 12:00  青老师  阅读(256)  评论(0编辑  收藏  举报