1.设置选择用户代码片段
2.搜索vue.json文件(没有就新建)
3.配置
{
"Print to console": {
"prefix": "vue3",
"body": [
"<template>",
"",
"<div></div>",
"",
"</template>",
""
"<script setup lang=\"ts\">",
"import {ref} from 'vue'",
"",
"</script>",
"<style scoped>",
"",
"</style>"
],
"description": "Log output to console"
}
}