先看效果演示:
如何设置呢?请看下面操作:
点击 设置-->用户代码片段--->新建全局代码片段--->输入文件名--->复制参考代码保存即可
参考代码如下:
{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
" <div id=\"\">\n",
" </div>",
"</template>\n",
"<script >",
"export default {",
" name: \"\",",
" data() {",
" return {}",
" },",
" components: {},",
" methods: {}",
"}",
"</script>\n",
"<style >\n",
"</style>",
"$2"
],
"description": "A vue file template"
}
}