效果
实现步骤
- 下载插件
- 编辑 vue.json
文件 =》 首选项 =》 用户代码片段 =》 vue.json
{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
" <div class=\"$0\"></div>",
"</template>",
"",
"<script>",
"export default {",
" name: '',",
" components: {},",
" props: {},",
" data () {",
" return {",
" }",
" },",
" computed: {},",
" watch: {},",
" created () {},",
" mounted () {},",
" methods: {}",
"}",
"",
"</script>",
"<style lang='less' scoped></style>",
""
]
}
}
3. 使用