I use VSCode on macOS, I ssh into Linux remote station and here I run tmux (inside VSCode integrated terminal). However, I am not able to copy any text from tmux into system clipboard when used like this. I am not even able to select the text using mouse - when I select any the selection highlight disappears immediately.
The copying to system clipboard works if:
How to copy text from tmux inside VSC integrated terminal?
Solved using the mouse while holding Alt (Option) key. This way I can copy text from Tmux inside VSCode.
EDIT: You also want to set
"terminal.integrated.macOptionClickForcesSelection": true
as @hulius suggested
There are answers mentioning how to set it up holding Alt key on Mac, but it didn't work for me on Linux.
Holding Shift instead of Alt worked out of the box though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With