vscode添加vue生成模板

1, vscode 文件 ---- >  首选项  ---- >  用户片段  -----> vue

2, 

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

3,   vue + enter

  

posted @ 2021-06-17 17:45  深巷漫步  阅读(121)  评论(0编辑  收藏  举报
/* 看板娘 */