Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Cursor bug in html file #4439

Open
amitbisht511 opened this issue Dec 30, 2019 · 7 comments
Open

Multiple Cursor bug in html file #4439

amitbisht511 opened this issue Dec 30, 2019 · 7 comments

Comments

@amitbisht511
Copy link

amitbisht511 commented Dec 30, 2019

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):

  • Extension (VsCodeVim) version:1.12.4
  • VSCode version: 1.41
  • OS: elementry os 5 (juno)
@amitbisht511
Copy link
Author

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

@piotrpalek
Copy link

@amitbisht511 thanks, this was so annoying I temporarily disabled the whole vim extension until I had time to search for a fix

@Brade
Copy link

Brade commented Jan 30, 2020

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.

@J-Fields
Copy link
Member

@Brade to be fair, I think if you're not using VSCodeVim, it's probably quite useful

@Brade
Copy link

Brade commented Jan 30, 2020

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.

@J-Fields
Copy link
Member

Ah interesting; I'd figured it would be smart enough to not copy attributes to the end tag. That is bothersome.

@andradei
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants