Vue - Official (Volar)

Microsoft.VisualStudio.Services.png

Vue - Official是Vue的VSCode官方插件,此前叫Volar。也是 Vue 的官方 IDE/TS 支持工具,除了集成 Vetur 的相关功能,如高亮、语法提示等之外,还包含一些独有功能。

该插件作者 Johnson Chu 为期 7 个月的全职开发工作由 Vue 作者尤雨溪提供资金,插件支持Vue 2 与 Vue 3。

插件下载地址:https://marketplace.visualstudio.com/items?itemName=vue.volar

如果你之前已经安装了Vue 2的拓展Vetur,请确保在 Vue 3 的项目中禁用它。否则会出现“Cannot find module '@/components/ui/Button.vue' or its corresponding type declarations.Vetur”的提醒。