Volar (vscode extension): line comment syntax in .vue files template section is wrong

Viewed 854

I have enabled Volar, the Vscode extension (v0.34.15). I have disabled the Vetur extension. Now when commenting out code in the template part of a vue file, the comments have the wrong syntax:

{# <p>hello</p> #}

instead of

<!-- <p>hello</p> -->

With Vetur it works like expected, so I don't know if this is caused by some conflict with another extension or if it is some setting that needs to be changed?

2 Answers

I had the same problem, solved by disabling some VS Code extensions, I disabled Vue 3 Snippets and TWIG pack, now everything works

Looks like a Twig(Symfony's template engine) extension is enabled and has access to .vue files, please disable it/them.

Related