码迷,mamicode.com
首页 > 其他好文 > 详细

vscode中设置vue代码片段

时间:2019-09-17 14:39:42      阅读:427      评论:0      收藏:0      [点我收藏+]

标签:scope   creat   div   alt   ima   http   设置   print   create   

1、点击【文件】---【首选项】---【用户代码片段】

技术图片

 

 2、新建或修改vue.json

技术图片

 

 3、将下列代码粘贴上去(可根据自己需要添加/删除)

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

 

vscode中设置vue代码片段

标签:scope   creat   div   alt   ima   http   设置   print   create   

原文地址:https://www.cnblogs.com/susu-yee/p/11533546.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!