VS code创建Vue快速模板(用户代码片段)

VS code创建Vue快速模板(用户代码片段)
首先打开 文件->首选项->用户代码片段
这里写图片描述
在输入框中输入vue.json
这里写图片描述
打开文件,输入

    "Print to console": {
        "prefix": "vue",
        "body": [
            "<template>",
            " <div>",
            " </div>",
            "</template>",
            "",
            "<script>",
            "export default {",
            "}",
            "</script>",
            "",
            "<style lang='scss' scoped>",
            "",
            "</style>"
        ],
        "description": "Log output to console"
    }

可以使用 vue + tab 快速创建VS code模板了
也可以使用这种方法来创建属于自己的各种模板

猜你喜欢

转载自blog.csdn.net/qq_42731879/article/details/82533770