1、如何设置?css
vue.json
代码片断粘贴下面代码片断便可vue
{ "Print to console": { "prefix": "vue", "body": [ "<template>", " <div>\n", " </div>", "</template>\n", "<script>", "export default {", " props: {\n", " },", " data() {", " return {\n", " };", " },", " computed: {\n", " },", " created() {\n", " },", " mounted() {\n", " },", " watch: {\n", " },", " methods: {\n", " },", " components: {\n", " },", "};", "</script>\n", "<style scoped lang=\"${1:scss}\">\n", "</style>\n", ], "description": "Create vue template" } }
2、如何使用?json
新建*.vue
文件,输入vue
,按tab
便可spa