首选项-->用户片段-->搜索vue.json(或新建vue,.json),输入以下代码
{
"Print to console3": {
"prefix": "vue3",
"body": [
"<template>",
" <div class=\"\">\n ",
" </div>",
"</template>",
"<script setup>",
"import {} from 'vue'",
"",
"</script>",
"<style lang=\"scss\" scoped>\n",
"</style>",
""
],
"description": "Log output to console"
},
"Print to console2": {
"prefix": "vue2",
"body": [
"<template>",
" <div>\n",
" </div>",
"</template>",
"<script>",
"export default {",
" name: 'APP',",
" data () {",
" return {",
" }",
" },",
" methods: {",
" },",
" created () {",
" },",
" mounted () {",
" },",
"}",
"</script>",
"<style lang=\"scss\" scoped>\n",
"</style>",
"$2"
],
"description": "Log output to console"
}
}
网友评论