microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.24k stars 29.3k forks source link

Mutilple cursor also includes wrapped lines #198399

Open arjanvanderleden opened 12 months ago

arjanvanderleden commented 12 months ago

Type: Bug

Similar but not identical issue: https://github.com/microsoft/vscode/issues/185112

in a text file window type a text line long enough to wrap type another line below that create mutiple cursors at the start of line by using the binding "alt" + "shift" + click

expected: two cursors each at the start of the two lines

observed: three cursors:

Remark The side effect of this behaviour is that when typing text at the cursor the wrapping changes the cursor positions

https://github.com/microsoft/vscode/assets/12948711/8bb26913-a1de-48f0-ab80-742db0076811

VS Code version: Code 1.84.2 (Universal) (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:52:33.687Z) OS version: Darwin arm64 22.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 2, 3| |Memory (System)|16.00GB (0.09GB free)| |Process Argv|code/retail-user-service --crash-reporter-id dd806f77-50ec-48cf-8058-97f75aa71674| |Screen Reader|no| |VM|0%|
Extensions (19) Extension|Author (truncated)|Version ---|---|--- asciidoctor-vscode|asc|3.1.8 vscode-eslint|dba|2.4.2 gitlens|eam|14.5.0 vscode-jest-runner|fir|0.4.69 gc-excelviewer|Gra|4.2.58 plantuml|jeb|2.17.5 python|ms-|2023.20.0 vscode-pylance|ms-|2023.11.10 jupyter|ms-|2023.10.1100000000 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 vscode-jest|Ort|5.2.3 vscode-yaml|red|1.14.0 code-spell-checker|str|3.0.1 vscode-gradle|vsc|3.13.4 quokka-vscode|Wal|1.0.578 change-case|wma|1.0.0
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263:30880072 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 2e4cg342:30602488 89544117:30613380 vscrp:30673768 showlangstatbar:30737416 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixtcf:30871695 pythonregdiag2cf:30871583 pyreplss1:30886140 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016cf:30886111 dsvsc017:30886112 dsvsc018cf:30886115 aa_t_chat:30882232 ```
misterpyrrhuloxia commented 2 months ago

+1 to this. I'm on a 16-inch 2019 MacBook Pro (Intel CPU) and this has always been incredibly frustrating. I used Atom editor for several years and it never had this issue.
As a result of #26393 (which is several years old) they had apparently fixed this behavior for the keyboard shortcuts back in October 2021 but they didn't do anything to apply the same logic to using the essentially the same behaviors with the mouse, i.e. Multi-cursor modifier and Column (box) selection.