I am experiencing an issue with Visual Studio Code. When I try to paste text into VS Code after copying from certain browsers and applications, the paste operation does not work as expected.
Details
- OS: Arch Linux
- WM: Hyprland
- VS Code Version: 1.89 – 1.92
- Affected Applications: Microsoft Edge, Google Chrome, Vivaldi, Obsidian (AUR)
Steps to Reproduce
- Open a Chromium-based browser (e.g., Microsoft Edge, Google Chrome, Vivaldi) and select some text.
- Copy the text using Ctrl+C.
- Switch to Visual Studio Code and attempt to paste the copied text into an open file using Ctrl+V.
Expected Result
The copied text should be pasted into the file in Visual Studio Code.
Actual Result
Nothing is pasted when pressing Ctrl+V in VS Code if the text was copied from a Chromium-based browser. However, when checking the clipboard history with Windows+V, the text is visible and selecting it from the clipboard allows it to be pasted into VS Code.
What I’ve Tried
- Restarting Visual Studio Code
- Disabling all extensions
- Updating Visual Studio Code to the latest version
- Changing and restoring keyboard shortcuts for copy and paste (Ctrl+C, Ctrl+V) as suggested in various forums
- Additional Information:
The issue does not occur when pasting into other applications or when the text is copied from Firefox.
I have also tried copying from the Obsidian app and encountered the same issue.