-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Copy-paste not working well in terminal #237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
VSCode configuration does not work for the terminal, it is editor configuration |
Thanks @avelino. I can't find a place to configure the terminal, so it's a bug of code-server, right? |
Similar problem on Linux, both with C-c C-v and X11 selection clipboard / middle click paste. |
I couldn't copy from the terminal and paste into the text editor |
What browsers is everyone using? This problem only happens with me when using Firefox, with Chromium Ctrl + Shift + V works. One thing I noticed is that when I right click in the terminal, in Chromium next to paste it says the key combo, while in Firefox it says "must use keybind".
I'm wondering if the key combo doesn't work some of the time because the I did some more testing and when I change that key combo condition to just Firefox might be blocking access to the clipboard since it's coming from javascript, according to this, if it's still accurate: https://support.mozilla.org/en-US/questions/1068472#answer-744685 I'm also messing with In the meantime, in addition to Ctrl + Shift + C for copy, Ctrl + Ins works for that too, while Shift + Ins works for paste. |
I use the latest chrome. copy and pasting doesn't work for me even with the right click menu. it's hard to say when it works and when it doesn't. Sometimes, I had trouble copying and pasting at a fresh launch. Then I saw chrome ask me if I allow the page to access clipboard. if I click "allow", copying pasting will work fine. But sometimes, this notification won't show. At one point, I also saw an error pop up from the bottom right corner saying electron.clipboard isn't a function or something. the error message went away pretty quickly, I didn't capture it. |
Sometimes cant even type or paste into editor when terminal is open ¯_(ツ)_/¯ |
I realized my copy and pasting issue might be due to "copy on select". when I try to paste into the editor, I first select the text I want to replace. it seems that during selection, the selected text gets copied into the clipboard, so when I paste, it actually pastes the same content as my selection. This made me thinking pasting didn't work. But I googled, while you can enable "copy on select" with some extension, the default vscode won't do it. |
Anyone has ideas?This troubles me. |
Same behaviour for me (serving code-server from Ubuntu Bionic, accessing it with Chrome / mac os). Copy on select is always on; it'd be great to be able to disable it. |
This might be fixed now. We've made some changes to the copy/paste. |
Fresh install here on a Google Cloud Platform Ubuntu (specs below from Neofetch). I canno't paste into the terminal.
|
Just an update to this. It seems like Firefox has the most issue. In Chrome and Vivaldi it works just fine if you make sure to set clipboard permission. |
step:1 , make sure code server is running on "https://" not http |
If this is a Chromium permissions issue we might want to add a notification when users try the shortcut for the first time on Chromium browsers. CC: @code-asher @kylecarbs |
For me it also fails sometimes in safari on iPadOs beta 3 |
fail on chrome Version 77.0.3865.120 (Official Build) (64-bit) + Mac OS 10.14.4 |
@jo32 refer to @shahidul56's workaround. This is a Chrome permissions issue. |
Closing to consolidate into #1106. |
@shahidul56 thx very much! it works for me! |
I have the same problem in firefox 74.0 in Windows. Paste works fine on my chrome based browser. |
is this solved, I am still facing it, I mean i can copy but not paste |
For me it also fails sometimes in safari on iPadOs |
code-server
version: 1.31.0-20-x86_64-linuxI've read Issue #161 and tried @avelino 's solution, but the copy-paste function still can't work in terminal.
Steps to Reproduce
I recorded a video to show how to reproduce this issue:
The text was updated successfully, but these errors were encountered: