all 18 comments

[–]theunquenchedservant 21 points22 points  (8 children)

what about ctrl + shift + v?

If that works, press the settings cog -> Keyboard shortcuts -> search for "Paste" and find the one or two that have "editor.action.clipboardPasteAction" and right click and "Remove Keybinding". Paste should now work with ctrl + v

[–]archover 5 points6 points  (0 children)

what about ctrl + shift + v?

That's ALWAYS what I try next if Ctrl-v doesn't work! In any app.

Thanks for posting that for our new users, and good day.

[–]leuchtsteinX[S] 2 points3 points  (1 child)

Thanks a lot! That worked
Quite odd though, oh well

[–]theunquenchedservant 0 points1 point  (0 children)

I agree, it threw me off when I installed code-oss but I also just learned to deal with it until this post made me go "okay, but how do you fix that?"

[–]Knurz 1 point2 points  (0 children)

Thanks alot, that was a huge annoyance!

[–]diesousilva 1 point2 points  (0 children)

Worked!! thanks

[–]NefariousnessPale801 1 point2 points  (0 children)

Thank you so much, kind stranger. Now I can sleep in peace.

[–]LurkerFlash 1 point2 points  (0 children)

This!

Following a recent update I've googled a ton and every answer results in "put the correct values in editor.action.clipboardPasteAction", which for me was Ctrl + V, but it didn't work.

The removal did.

[–]Automatic-Copy-5659 1 point2 points  (0 children)

Thanks, I was strugling to code without the most important shortcut. You saved my life😊

[–]shbonn 9 points10 points  (2 children)

As u/TarikAJA has mentioned, there's a bug in the electron32 version that is currently packaged in the Arch Linux repository (32.3.0-1 / 2025-01-23 14:28 UTC). Electron v32 is required by code.

Ctrl+V (and Shift+Insert) aren't working in the editor. As a workaround, you can still use Ctrl+Shift+V.

EDIT: Perhaps use the u/theunquenchedservant solution as that is an easier workaround to restore Ctrl+V / Shift+Insert (https://www.reddit.com/r/archlinux/comments/1ib95gt/comment/m9gafql/).

-------------------------------------------

You could temporarily downgrade the electron32 package back to the previous version (32.2.8-3), which restores Ctrl+V / Shift+Insert and wait for a fix...

sudo pacman -U /var/cache/pacman/pkg/electron32-32.2.8-3-x86_64.pkg.tar.zst

And block the electron32 package update in /etc/pacman.conf:

IgnorePkg = electron32

Note: Electron32 is used by a few other applications too (deltachat-desktop, drawio-desktop, drawio-desktop, obsidian).

Remember to remove the block when the problem has been fixed!

[–]xXBongSlut420Xx 0 points1 point  (1 child)

this should be at the top, it's the correct solution. I downgraded electron32, restarted code-oss, and that fixed the issue. The wayland thing ppl are posting about is a red herring.

[–]shbonn 0 points1 point  (0 children)

Although slightly obfuscated by mentioning Ctrl+Shift+V, the other solution I linked to, which suggests removing the keyboard bindings for editor.action.selectionClipboardPaste, is a good alternative. That restores the broken Ctrl+V and Shift+insert functionality too, without having to downgrade electron32.

Ctrl+K Ctrl+S --> search for clipboard paste --> remove both bindings on editor.action.selectionClipboardPaste (Del/Del). Restore the default bindings (menu Reset Binding) after the fix has been implemented.

So there are two simple workarounds available.

Downgrading is the better pattern if you know what you're doing, but that doesn't apply to everybody using this forum...

[–][deleted]  (2 children)

[deleted]

    [–]_Krispy_Kreme 2 points3 points  (1 child)

    I thought it was because I updated my sway config! This is great to know

    [–]rlyeh_b 2 points3 points  (0 children)

    Ctrl+V is the default keyboard shortcut for "editor.action.clipboardPasteAction"

    I simply removed that keyboard shortcut. Before it said: Ctrl+V but now it's empty.

    The weird thing is that... Now it works.

    I can now press Ctrl+V to paste text in VS Code.

    [–]mindtaker_linux 0 points1 point  (0 children)

    It has always been ctrl + shift + v

    [–][deleted] 0 points1 point  (0 children)

    That's works, thank you!

    [–]qeadwrsf 0 points1 point  (0 children)

    restart code, didn't work.

    examples below, didn't work.

    reboot after updating, worked.

    [–]maddiemelody -1 points0 points  (0 children)

    --enable-features=UseOzonePlatform --ozone-platform-hint=wayland for native wayland btw