vscode: Copy and paste not working

Type: Bug

I will be working normally, then randomly the copy and paste keyboard shortcuts will stop working, and I get a “Contributed command editor.action.clipboardCopyAction does not exist” error. Sometimes, even the right-click menu copy and paste options will break as well. I CANNOT WORK LIKE THIS!

I know I am not the only person having this issue because Google has tons of articles with the exact same issue, going back years. People on the internet should not have to figure out workarounds for your broken program. FIX IT!

VS Code version: Code 1.101.1 (18e3a1ec544e6907be1e944a94c496e302073435, 2025-06-18T13:35:12.605Z) OS version: Windows_NT x64 10.0.26100 Modes:

System Info
Item Value
CPUs 12th Gen Intel® Core™ i9-12900K (24 x 3187)
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) 63.85GB (32.61GB free)
Process Argv –crash-reporter-id bb9e96a3-40b4-4f91-9018-dcd4c17e1d6c
Screen Reader no
VM 0%
Extensions (24)
Extension Author (truncated) Version
smarty-template-support asw 2.1.1
vscode-tailwindcss bra 0.14.23
continue Con 1.0.15
docker doc 0.11.0
es7-react-js-snippets dsz 4.4.3
gitlens eam 17.2.0
prettier-vscode esb 11.0.0
gc-excelviewer Gra 4.2.63
minifyall jos 2.10.0
mongodb-vscode mon 1.13.3
vscode-containers ms- 2.0.3
vscode-docker ms- 2.0.0
remote-ssh ms- 0.120.0
remote-ssh-edit ms- 0.87.0
remote-explorer ms- 0.5.0
vscode-react-native msj 1.13.0
vscode-yaml red 1.18.0
LiveServer rit 5.7.9
claude-dev sao 3.17.16
intellicode-api-usage-examples Vis 0.2.9
vscodeintellicode Vis 1.3.2
wordpress-toolbox wor 1.3.16
php-debug xde 1.36.1
php-pack xde 1.0.3
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc1:31192215
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
c7cif404:31314491
e77a2192:31326280
pythonpulldiagcf:31325931
996jf627:31283433
pythonrdcb7cf:31303019
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
c4b42873:31332228
i851h500:31332225
usemarketplace:31333563
nesew2to15:31330639
cja58720:31334890
4f60g487:31327383
id45c886:31333049
test-11-control:31334521

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 13
  • Comments: 39 (13 by maintainers)

Most upvoted comments

I have exactly the same problem and I’ve been trying to figure out what is triggering this, without luck… This is really strange and I never had it before. Breaking copy-paste is really a new frontier in development, kudos. Reloading window usually fixes it.

Could you disable the setting editor.experimentalEditContextEnabled or editor.editContext and let me know if you see this happen over a long period of time ?

Hi, I encountered again this issue while having "editor.experimentalEditContextEnabled": false in my settings.json. however the issue is only present in jupter notebooks from what I can see

Thank you for commenting. Can I ask you if you see this happening when you disable the setting editor.experimentalEditContextEnabled or editor.editContext ?

it works when I disable editor.experimentalEditContextEnabled in my case.

I have just disabled those settings so I will let you know. It could take a couple of weeks until I know, the bug usually occurs 1-3 times a week randomly.

By the way for anyone else still having issues until this is fixed, I found that unbinding the “editor.action.clipboardCopyAction” keybind fixes it temporarily, then when the issue comes back a few days later, I go back in and right click on “editor.action.clipboardCopyAction” then “Reset Keybinding” and it fixes it temporarily again.

Thanks. I will have to wait until it happens. I have yet not hit it unfortunately. Maybe it mostly happens in Jupyter notebooks.

I’m not sure if this helps or not but Try throttling your internet. I had some connectivity issues for a while, and the issue occurred very frequently at that time.

I have been running into this issue for at least a month but mainly in notebook cells for ipynb files. Like described by others, it occurs randomly.

The issue seems to be occurring only for a specific cell. When I create a copy of the cell and start editing there, everything is fine. The problem I experience is that when I select text, I can cut it or copy it, but then it doesn’t appear in my clipboard.

I found this via https://www.reddit.com/r/vscode/comments/1lzgt3d/copy_and_paste_sometimes_stop_working_in_the_vs/ who’s author has the exact same issue in notebooks.

As someone who has to debug things based on customer feedback, I know saying “it happens randomly” doesn’t help at all hahah.

But that is the only word that can describe it. I use VS code for about 10 hours a day, including weekends, and I use it the exact same way, so I don’t know why it doesn’t happen more often. Sometimes it occurs between me and editing lines 57 and 65. I will try to copy a variable name from above and paste it into an if statement, but it pastes the previous thing in my clipboard (it doesn’t copy the new value).

I totally agree…and this what makes this issue so hard to debug. My experience is exactly the same: the issue just randomly appears and disappears without any special trigger.

“Reloading window usually fixes it.”

Like I said in my message above, users shouldn’t need to find workarounds for something that is broken. They need to stop spending time on Copilot and just fix something as basic as copy and paste that has been broken for years.

I know, I totally agree with you.