Skip to content

Multiple cursor copy-paste of non-selected lines pastes everything #256039

@BartolHrg

Description

@BartolHrg

Type: Bug

  1. have this contents of the file with multiple cursors at | (and nothing selected)
a|
b|
  1. Copy (Ctrl + C)
  2. Paste (Ctrl + V)

Expected:

a
a
b
b

Result:

aa
b

ba
b

If I were to individualy do the steps for each cursor (just 2 of them in this case), the result would be what's shown above (in the "Expected" region)

I have "editor.multiCursorPaste": "full", however, this setting should not apply in this case, since I don't have a single selection with multiple lines,
I have multiple copied items with single line in each.

I have slighltly modified VSCode installation, with only lineCommentCommand.ts modified to support tabs,
therefore, this also doesn't apply.

VS Code version: Code 1.102.0 (cb0c47c, 2025-07-09T22:10:34.600Z)
OS version: Windows_NT x64 10.0.26100
Modes: Unsupported

System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i7-13700H (20 x 2918)
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.63GB (4.74GB free)
Process Argv --crash-reporter-id 5235ac69-27f7-4b93-9f49-763295cb8572
Screen Reader no
VM 0%
Extensions (37)
Extension Author (truncated) Version
vscode-zipfs arc 3.0.0
brainfuck-syntax att 0.0.1
manipulatenumbers Bar 1.1.0
pynewline Bar 1.1.1
arm dan 1.7.4
RunOnSave eme 0.2.7
prettier-vscode esb 11.0.0
vscode-opencl gal 0.8.6
path-autocomplete ion 1.25.0
vscode-autohotkey-plus-plus mar 6.7.1
Kotlin mat 1.7.1
debug-tracker-vscode mcu 0.0.15
memory-view mcu 0.0.25
peripheral-viewer mcu 1.4.6
rtos-views mcu 0.0.7
rainbow-csv mec 3.20.0
workspace-storage-cleanup meh 1.11.5
git-graph mhu 1.30.0
debugpy ms- 2025.10.0
python ms- 2025.4.0
vscode-pylance ms- 2025.4.1
remote-wsl ms- 0.99.0
cpptools ms- 1.22.11
extension-test-runner ms- 0.0.12
hexeditor ms- 1.11.1
powershell ms- 2025.2.0
incrementor nms 1.0.3
word-count Oli 0.1.0
subtitles-editor pep 1.1.7
ActiveFileInStatusBar Ros 1.0.3
markdown-preview-enhanced shd 0.8.18
pdf tom 1.2.2
gnu-mapfiles tro 1.1.0
luna-paint Tyr 0.17.0
vscode-todo-highlight way 1.0.5
change-case wma 1.0.0
linkerscript Zix 1.0.4

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
binariesv615:30325510
962ge761:30959799
h48ei257:31000450
nativeloc1:31344060
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
hdaa2157:31222309
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
pythonpulldiag:31343502
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
6518g693:31334701
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
pylancequickfixt:31329274
9d2cg352:31346308
convertlamdaf:31329270
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31335815
b6b4d950:31327385
nes-diff-11:31337487
testaa123cf:31335227
onetestforazureexpcf:31335614
63221493:31336333
yijiwantestdri0626-c:31336931
0927b901:31348072
ji9b5146:31342393
i3fce822:31345573

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-clipboardEditor clipboard issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions