Skip to content

UI Selection Duplication Issue HTML Tags #90146

Closed

Description

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

Activity

  1. bergamin commented on Feb 11, 2020

    @bergamin

    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

  2. octref commented on Feb 11, 2020

    @octref
    Contributor

    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.

  3. added
    *question
    on Feb 11, 2020
  4. locked and limited conversation to collaborators on Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

*question

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions