vs code 预设 vue 用户代码片段
预设vue:
1 { 2 // Place your snippets for vue here. Each snippet is defined under a snippet name and has a prefix, body and 3 // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: 4 // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 5 // same ids are connected. 6 // Example: 7 "create": { 8 "prefix": "vue", 9 "body": [ 10 "<template>\n\t<div></div>\n</template>\n\n<script>\nexport\tdefault\t{\n\tname:'',\n\tdata(){\n\t\treturn{}\n\t}\n\tcreated(){},\n\tmounted(){},\n\tmethods:{}\n}\n</script>" 11 ], 12 "description": "create vue" 13 } 14 }