Skip to content

Multicursor highlighting on selection behaves oddly #21457

Closed
@atombender

Description

@atombender
  • VSCode Version: 1.9.1

Steps to Reproduce:

  1. Type the text XXXXXX
  2. Select the first X
  3. Hit cmd-D multiple times. The selection will grow exponentially:

t

I expected each cmd-D keypress to select the next X.

Furthermore, the "highlight all" behaves similarly oddly: It will highlight pairs of whatever you selected:

t2

Even weirder, if you replace the text, then undo, any adjacent selections are collapsed (so it doesn't undo the selection properly):

t3

  1. Type 20 Zs.
  2. Select one Z and "highlight all". There are now 10 selections of 2 characters each (wrong).
  3. Type "p" to replacing all of them. You get 10 p's (wrong).
  4. Undo. There are now 5 selections of 4 characters each (wrong).
  5. Type "p" to replace all of them again. You get 5 p's (wrong).
  6. And so on.

Metadata

Metadata

Labels

*duplicateIssue identified as a duplicate of another issue(s)bugIssue identified by VS Code Team member as probable bugeditor-multicursorEditor multiple cursor issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions