You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow to copy from remote tmux to local clipboard #8049
I'm a tmux user who copies text from terminal using keyboard.
In tmux, I'm able to enter "copy mode", select text, press "Enter" and selected text will show up in the Clipboard.
Unfortunately I'm unable to achieve it with Remote SSH extension. However it is working as expected when I'm connect via standard SSH and use tmux.
To be honest I do not know if that's a "Bug" of "Feature Request"
Reacted by Andrey Aleksandrov, splitmode, Gunnar, radimpaseka, Krzysztof Kornacki, Wojciech Rękas, janknigawka, Jan, Marcin Nowakowski, kgarnitz and 33 more
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
This is happening because of the way the SSH extension works, VS Code uses SSH to communicate with the remote, but on the remote we launch a regular local shell so the text is copied but it's copied on the remote's clipboard, not the local clipboard.
I don't believe this is limited to just Mac vscode. I am running Windows 10 with vscode 1.79.1 with an Ubuntu LTS remote SSH and seeing the same behavior. Copy/paste to the local clipboard works fine for other terminal sessions, but after trying various things found on the web I can't get the copy/paste behavior through tmux to work as expected.
I configured remote-ssh to open tmux as default integrated terminal profile.
After tmux is launched, I can't copy and paste using vim-like copy-mode-vi by pressing y. I managed to use a tmux-plugin called tmux-yank to copy selected words into the command line, but they won't go inside my local macbook's system clipboard. Now I temporarily hold alt key to copy via mouse, but being able to yank directly via y would be lovely!
Activity
bamurtaugh commentedon Feb 22, 2023
cc Eleanor Boyd (@eleanorjboyd) I'm making this as a feature request, but if you think it's a bug, please just let me know.
vscodenpa commentedon Feb 22, 2023
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
Tyriar commentedon Feb 28, 2023
This is happening because of the way the SSH extension works, VS Code uses SSH to communicate with the remote, but on the remote we launch a regular local shell so the text is copied but it's copied on the remote's clipboard, not the local clipboard.
Given this, I think feature request is right.
pszypowicz commentedon Mar 1, 2023
Brigit Murtaugh (@bamurtaugh) It seems we have 10 upvotes :)
kishykumar commentedon Mar 20, 2023
Can we get this fixed please? It really makes tmux useless on VSCode.
kdkavanagh commentedon Apr 3, 2023
+1, I have remote copy-paste working with tmux on a rhel host via iterm2 on a mac, so I dont think it's a limitation with ssh itself
raven42 commentedon Jun 15, 2023
I don't believe this is limited to just Mac vscode. I am running Windows 10 with vscode 1.79.1 with an Ubuntu LTS remote SSH and seeing the same behavior. Copy/paste to the local clipboard works fine for other terminal sessions, but after trying various things found on the web I can't get the copy/paste behavior through tmux to work as expected.
zhuoqun-chen commentedon Aug 2, 2023
Also vote for this feature.
I configured
remote-sshto opentmuxas default integrated terminal profile.After tmux is launched, I can't copy and paste using vim-like
copy-mode-viby pressingy. I managed to use a tmux-plugin calledtmux-yankto copy selected words into the command line, but they won't go inside my local macbook's system clipboard. Now I temporarily holdaltkey to copy via mouse, but being able to yank directly viaywould be lovely!Thank you for implementing this feature!
avamsi commentedon Aug 19, 2023
I think xtermjs/xterm.js#3260 is related?
duenzo commentedon Feb 16, 2024
Also vote for this feature
navratiljan commentedon Feb 26, 2024
+1 for this feature
Tyriar commentedon Apr 22, 2024
/duplicate microsoft/vscode#193508