Is it feasible to enable autocompletion/suggestions in the template section of a Single File Component (SFC) when using VS Code with Vue 3 and Typescript, particularly for component props?
For instance, consider a basic component named UserComponent
:
<template>
<div>
{{username}}
</div>
</template>
<script setup lang="ts">
interface Props {
username: string
}
const props = defineProps<Props>();
</script>
When utilizing the component and entering: <UserComponent u
- It is reasonable to anticipate 'username' as a potential prop suggestion.
I am employing the volar plugin for VS code, and the project has been initialized with Vite.