Vscode: Automatic multiple cursor on HTML tags

Created on 18 Dec 2019  路  13Comments  路  Source: microsoft/vscode

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

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

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

*as-designed html

Most helpful comment

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

All 13 comments

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.

Resolved!

But that wasn't active before the latest update.

Maybe the latest update automatically turned on?

@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?

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!

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

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

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.

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

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.

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.

This is made an opt-in feature: https://github.com/microsoft/vscode/issues/87737#issuecomment-577095726 in the upcoming release

This has been driving me nuts! Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Perkovec picture Perkovec  路  191Comments

ghost picture ghost  路  234Comments

mariusa picture mariusa  路  219Comments

Tyriar picture Tyriar  路  200Comments

hsdk123 picture hsdk123  路  263Comments