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

Automatic multiple cursor on HTML tags #87271

Closed
joaodezembro opened this issue Dec 18, 2019 · 13 comments
Closed

Automatic multiple cursor on HTML tags #87271

joaodezembro opened this issue Dec 18, 2019 · 13 comments
Assignees
Labels
*as-designed Described behavior is as designed html HTML support issues

Comments

@joaodezembro
Copy link

joaodezembro commented Dec 18, 2019

  • VSCode Version: 1.41.0
  • OS Version: Windows_NT x64 10.0.18362

Steps to Reproduce:

  1. Create HTML file
  2. Write <div></div>
  3. Put the cursor after the last html tag word (ex: v, from div)

image
5. VSC automatic create a new cursor in the closing tag

Does this issue occur when all extensions are disabled?: Yes

@vscodebot vscodebot bot added the html HTML support issues label Dec 18, 2019
@IllusionMH
Copy link
Contributor

It's functions as designed, see HTML mirror cursor

Do you experiencing any bugs with this behavior? Post also contains info how to configure this behavior if needed.

@joaodezembro
Copy link
Author

Resolved!

But that wasn't active before the latest update.

Maybe the latest update automatically turned on?

@IllusionMH
Copy link
Contributor

@DezembroYD this is new feature from latest version 1.41 (which was released last week) and it is enabled by default. However you can turn it off if you prefer.

Do you see any bug or problems with this feature? If not could you close this issue?

@aeschli aeschli assigned octref and unassigned aeschli Dec 19, 2019
@octref octref added the *as-designed Described behavior is as designed label Dec 19, 2019
@vscodebot
Copy link

vscodebot bot commented Dec 19, 2019

The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Dec 19, 2019
@octref
Copy link
Contributor

octref commented Dec 19, 2019

As @IllusionMH mentioned, it's a new feature, if you don't like it you can turn it off.

@suryasarafe
Copy link

thank you @IllusionMH, i searching name of the feature, and it's named

Mirror Cursor On Matching Tag

in settings, i don't want this feature active, make many of my code have wrong position.

this have issue when your cursor on div or other html tag and move below or above the selected line code, and somewhere in your code just move without permission

@JohnnyTMD
Copy link

It's functions as designed, see HTML mirror cursor

Finally found how to disable that.
I can't make any use of that, only makes me more troubles.

@garg10may
Copy link

such a bogus feature. remove it or disable by default. More importantly, I was thinking there's some extension doing it.

@Seairth
Copy link

Seairth commented Jan 31, 2020

In my case, every time I started typing an attribute, the mirror cursor was also adding it to the closing tag! Maybe this is because I am working with Angular templates, but it doesn't really matter. This should be an opt-in feature.

@bradleypeabody
Copy link

This is also particularly dangerous when the closing tag is too far down and not visible. You are then automatically editing something you can't even see.

If you accidentally mis-match your tags it is even worse, as it will modify the wrong closing tag.

This seems like something that should be activated with a keystroke, not automatic.

@octref
Copy link
Contributor

octref commented Feb 3, 2020

This is made an opt-in feature: #87737 (comment) in the upcoming release

@rjcorwin
Copy link

rjcorwin commented Feb 8, 2020

This has been driving me nuts! Thank you!

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*as-designed Described behavior is as designed html HTML support issues
Projects
None yet
Development

No branches or pull requests

10 participants