Typing attr=
followed by "value
results in value
being inserted after the automatically added closing quote
#917
Labels
duplicate
This issue or pull request already exists
I can't think of another language extension that automatically inserts opening and closing quotes automatically, but typically the closing quote is inserted automatically after the user enters the opening quote. I don't mind that Volar adds both quotes automatically after an attribute (I think it makes sense, actually), but since I always type the opening quote by habit and the cursor is moved between the inserted quotes, I frequently end up typing the attribute value after the closing quote.
Steps to reproduce:
<template>
section of a single-file componentattr=
. A pair of double quotes is automatically inserted after the=
.value
Expected result: The attribute value is inserted between the double quotes:
<tag attr="value" />
Actual result: The tag attribute value is inserted after the closing quote:
<tag attr""value />
The text was updated successfully, but these errors were encountered: