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

UI Selection Duplication Issue HTML Tags #90146

Closed
dhananjay1405 opened this issue Feb 6, 2020 · 3 comments
Closed

UI Selection Duplication Issue HTML Tags #90146

dhananjay1405 opened this issue Feb 6, 2020 · 3 comments
Assignees
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@dhananjay1405
Copy link

Whenever any HTML tag is selected, and cursor is moved using shift plus left/right key, a mirror selection of text happens in editor from position where it finds HTML end tag, thereby selecting non-continuous region

3-4 seconds GIF of screen potion is attached for precise understanding of issue

  • VSCode Version: 1.41.1
  • OS Version: Windows 10 x64

Steps to Reproduce:

  1. Just place cursor anywhere in HTML tag start
  2. Press Shift + Right key
  3. Go on selecting few character
  4. Editor starts selecting text simultaneously from the HTML tag end position too

Does this issue occur when all extensions are disabled?: Yes
vs-code-selection-bug

@vscodebot
Copy link

vscodebot bot commented Feb 6, 2020

@bergamin
Copy link

bergamin commented Feb 11, 2020

Having the same issue:

Shift+End:

image

Shift+Arrow:

image

Which will cause a mild rage after hitting delete in such a situation when the end tag is not visible

Until this and #87067 aren't fixed, I'm turning off this feature

@octref
Copy link
Contributor

octref commented Feb 11, 2020

This is a feature called "Mirror Cursor", which adds a multi-cursor when you are inside a HTML tag, and this is the expected behavior of multi-cusor.

You can turn this feature off by `"html.mirrorCursorOnMatchingTag": false" or press ESC to dismiss the multi-cursor before selection.

Or you can wait for implementing #88424 which will duplicate content changes, but not selection.

@octref octref closed this as completed Feb 11, 2020
@octref octref added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Feb 11, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants