vscode vue添加代码片段

 

{
      "Print to console": {
        "prefix": "vue",
        "body": [
                "<template>",
                "  <div>",
                "  </div>",
                "</template>",
                "",
                "<script>",
                "  export default {",
                "  data() {",
                "    return {",
                "",
                "    };",
                "  },",
                "  created() {",
                "",
                "  },",
                "  mounted() {",
                "",
                "  },",
                "  methods: {",
                "",
                "  },",
                "}",
                "</script>",
                "",
                "<style lang='less' scoped>",
                "$4",
                "</style>"
        ],
        "description": "Log output to console"        
    }
}

新建vue页面,输入vue+tab

原文地址:https://www.cnblogs.com/ljy-/p/12619833.html