文件 - 首选项 - 用户片段 - vue.json
修改vue.json
{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
" <div></div>",
"</template>",
"",
"<script>",
"export default {",
" data () {",
" return {",
"",
" };",
" },",
"",
" components: {},",
"",
" computed: {},",
"",
" methods: {}",
"}",
"</script>",
"",
"<style lang='less' scoped>",
"",
"</style>"
],
"description": "Log output to console"
}
}
注:css选择了less 。
新建.vue文件 输入vue 按键盘的tab就行