打开VS Code,
file-Preferences-Configure User Snippets
{
"Print to console": {
"prefix": "vue",
"body": [
"<script setup lang=\"ts\">",
" import { ref } from 'vue'",
"</script>",
"",
"<template>",
" $1",
"</template>",
"",
"<style scoped>",
"</style>"
],
"description": "Log output to console",
}
}
标签:vue,console,VS,Code,Vue3,模板
From: https://www.cnblogs.com/wang-zeyu/p/18075158