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

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

  

原文地址:https://www.cnblogs.com/qinglaoshi/p/14699768.html