一、 设置/配置用户代码片段
二、点击新建全局代码片段文件输入vue.json
三、配置代码片段、
{
"Print to console": {
"prefix": "vue3",
"body": [
"<template>",
" <div></div>",
"</template>",
"",
"<script setup lang=\"ts\">",
"import { ref, reactive, toRefs, onMounted} from 'vue'",
"",
"</script>",
"<style scoped lang=\"less\">",
"</style>",
],
"description": "Log output to console"
}
}
四、使用方法