美文网首页
vsCode 快速生成vue模板

vsCode 快速生成vue模板

作者: 不知名的狐妖 | 来源:发表于2022-07-20 21:29 被阅读0次

    vsCode 快速生成vue模板

    ### 1、vsCode 快速生成vue模板

    ```json

    /**

    * 到插件市场 安装 vue-helper

    *

    ctrl+shift+p[command+shift+p] -> 搜索‘vue.json'贴入已下代码

    * 回到新建文件中 输入 'vue' -> 等待插件启动

    * 选择"create vue2/vue3" 就可以啦

    **/

    {

    "create Vue2": {

    "prefix": "vue",

    "body": [

    "<template>", " <div> {{msg}} </div>", "</template>\n",

          "<script>", "export  default {",

    " data(){", "  return {", " msg: 'hello world!'",

    "  }\n", " }\n", "}\n",

    "</script>\n", "<style scoped>", "</style>\n",

    ],

    "description": "Log output to console"

    },

    "create Vue3": {

    "prefix": "vue",

    "body": [

    "<template>", " <div> {{msg}} </div>", "</template>\n",

    "<script setup lang='ts'>",

    "export  default {",

    " data(){", "  return {", " msg: 'hello world!'",

    ### 1、vsCode 快速生成vue模板

    ```json

    /**

    * 到插件市场 安装 vue-helper

    * ctrl+shift+p[command+shift+p] -> 搜索‘vue.json'贴入已下代码

    * 回到新建文件中 输入 'vue' -> 等待插件启动

    * 选择"create vue2/vue3" 就可以啦

    **/

    {

    "create Vue2": {

    "prefix": "vue",

    "body": [

    "<template>", " <div> {{msg}} </div>", "</template>\n",

          "<script>", "export  default {",

    " data(){", "  return {", " msg: 'hello world!'",

    "  }\n", " }\n", "}\n",

    "</script>\n", "<style scoped>", "</style>\n",

    ],

    "description": "Log output to console"

    },

    "create Vue3": {

    "prefix": "vue",

    "body": [

    "<template>", " <div> {{msg}} </div>", "</template>\n",

    "<script setup lang='ts'>",

    "export  default {",

    " data(){", "  return {", " msg: 'hello world!'",

    "  }\n", " }\n", "}\n",

    "</script>\n", "<style scoped>", "</style>\n",

    ],

    "description": "Log output to console"

    },

    }

    ```

    -end-

    相关文章

      网友评论

          本文标题:vsCode 快速生成vue模板

          本文链接:https://www.haomeiwen.com/subject/uuyyirtx.html