IDE:vscode的vue3模板
快捷键打开配置选项:ctrl + shift + p
选择配置文件:Snippet: Configure Snippets
{// Place your snippets for vue here. Each snippet is defined under a snippet name and has a prefix, body and // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the // same ids are connected.// Example:// "Print to console": {// "prefix": "log",// "body": [// "console.log('$1');",// "$2"// ],// "description": "Log output to console"// }"Vue 3 Setup Template": {// 快捷键设置。"prefix": "vue3","body": ["<template>"," <div class=\"${TM_FILENAME_BASE}\">"," $0"," </div>","</template>","","<script lang=\"ts\">"," export default {"," name: 'MODULE NAME'"," }","","</script>","","<script lang=\"ts\" setup>"," import { ref } from 'vue'"," $1","</script>","","<style scoped>","","</style>"],"description": "Vue 3 Composition API"}}