具体操作按照下面图示顺序进行配置即可:
1.找到如下图所示位置点击
2.如下图示配置文件,如没有,则新建即可
3.配置代码如下所示
{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
"\t<div></div>",
"</template>",
"",
"<script>",
"",
"export default {",
"\tname: \"\",",
"\tcomponents: {},",
"\tdata() {",
"\t\treturn {};",
"\t},",
"\tcreated() {},",
"\tmounted() {},",
"\tmethods: {},",
"}",
"</script>",
"",
"<style lang='scss' scoped>",
"$2",
"</style>"
],
"description": "Log output to console"
}
}
4.使用时,输入vue,回车即可
5.快捷生成结果示意图