使用 lang="pug" 时,如何让 WebStorm 将 Vue 模板速记视为正确?

How do I get WebStorm to treat Vue template shorthands as correct when using lang="pug"?

在 .vue 文件的上述模板中,v-bind:class:class 的 shorthand 被突出显示为不正确,即使它是正确的并且在编译模板时实际有效。 v-on shorthand @ 也会发生这种情况。仅在lang="pug"时出现,不影响模板编译

我假设这是因为 WebStorm 使用 pug 编译器生成错误,而没有考虑这个 pug 代码在 Vue 模板中的事实。但我不确定如何修复它。有什么建议吗?

编辑: @click 未在此处标记为不正确,但随后放入属性中的任何 @foo 都会被标记。

这是一个已知问题,请关注WEB-28010更新