File->Settings
搜索File and Code Templates
点击加号,然后如图所示操作
具体代码
<template>
<div></div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
setup() {
return {}
}
})
</script>
<style scoped></style>