在Vue文件中自动生成Vue结构
- 找到文件—>首选项---->用户代码片段,点击会出来一个搜索框、
2.在搜索框中输入vue会自动弹出一个vue.json文件,复制以下内容到文件中
{
"Print to console": {
"prefix": "vue",
"body": [
"<!-- $0 -->",
"<template>",
" <div></div>",
"</template>",
"",
"<script>",
"export default {",
" data () {",
" return {",
" };",
" },",
"",
" components: {},",
"",
" computed: {},",
"",
" mounted: {}