小白零基础上手使用前端vue3(2)vscode配置代码片段

配置方法:文件-首选项-配置用户代码片段-vue.json

注:不喜欢用可以不配置
{
    // Place your snippets for vue here. Each snippet is defined under a snippet name and has a prefix, body and 
    // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
    // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 
    // same ids are connected.
    // Example:
    "Print to console": {
        "prefix": "uni-vue2", // uniapp+vue2 模板提示词
        "body": [
            "",
            "",
            "",
        ],
        "description": "uniapp+vue2 模板"
    },
    "C": {
        "prefix": "uni-vue3", //uniapp+vue3 模板提示词
        "body": [
            "",
            "",
            "",

        ],
        "description": "uniapp+vue3 模板"
    },
    "E": {
        "prefix": "uni-vue3-com",//uniapp+vue3+子组件 模板提示词
        "body": [
            "",
            "",
            "",

        ],
        "description": "uniapp+vue3+子组件 模板"
    },
    "F": {
        "prefix": "ele-vue3",  //ele+vue3提示词
        "body": [
            "",
            "",
            "",
        ],
        "description": "ele+vue3提示词"
    }
}

你可能感兴趣的:(小白零基础上手使用前端vue3(2)vscode配置代码片段)