Describe the bug
In the latest vscode (1.41) the vscode team release a new feature called html mirror cursor now when i open a html file and go to a tag in normal mode it also select its closing tag in multi cursor mode but when i move my cursor it does not close the multi cursor mode
To Reproduce
create a simple html file with some tag like
<form>
<input type='text'>
<input type='text'>
</form>
move your cursor in normal mode to opening form tag you see that closing form tag also get selected now move your cursor into next line in input you see that form tag is still selected
Expected behavior
the multi cursor should be closed when i am not in html tag
Environment (please complete the following information):
for anyone who is suffering from the same issue you can disable this vscode feature via setting html.mirrorCursorOnMatchingTag just search _mirror cursor on matching tag_ in setting and uncheck the checkbox
@amitbisht511 thanks, this was so annoying I temporarily disabled the whole vim extension until I had time to search for a fix
HTML mirror cursor is an absolutely horrible feature. Was screwing me up for quite a while until I was finally forced to search about it. "On" by default is just an unbelievably bad choice.
@Brade to be fair, I think if you're not using VSCodeVim, it's probably quite useful
I'm not using that, and I can assure you it's still not useful. I often paste class attributes etc to similar open tags, and it kept pasting it all on the end tags as well. I've turned it off now, but I really disagree with the decision to have it "on" by default.
Ah interesting; I'd figured it would be smart enough to not copy attributes to the end tag. That is bothersome.
In my case, html.mirrorCursorOnMatchingTag was off by default but I had the https://github.com/formulahendry/vscode-auto-rename-tag extension installed which messed up this vim plugin big time.
Most helpful comment
for anyone who is suffering from the same issue you can disable this vscode feature via setting
html.mirrorCursorOnMatchingTagjust search _mirror cursor on matching tag_ in setting and uncheck the checkbox