I run a code server on one machine in my home lab and access it via Safari browser on another MacBook. I use http to connect to the code server and am able to access my projects and develop just fine.
The problem is that I am not able to Copy text from the terminal (in the VS Code running in the browser). I have tried everything, including tweaking the settings file but I cannot seem to get the "copy" action to work. Often times there are error messages that I would like to copy and paste for searching on google, but it just doesn't work.
If I run the actual VS code app, then I can copy paste just fine from terminal window of VS Code. But I prefer the browser version.
Here is what I have as settings for workbench.action.terminal.copyselection { "workbench.colorTheme": "Default Dark Modern", "workbench.startupEditor": "none", "terminal.integrated.scrollback": 20000, "terminal.integrated.commandsToSkipShell": [ "workbench.action.terminal.copySelection", "workbench.action.terminal.paste" ], "terminal.integrated.copyOnSelection": true, "terminal.integrated.defaultProfile.osx": "bash", "terminal.integrated.sendKeybindingsToShell": true, "editor.minimap.enabled": false }
Here is what I have in settings.json for the copyOnSelection:
{ "workbench.colorTheme": "Default Dark Modern", "workbench.startupEditor": "none", "terminal.integrated.scrollback": 20000, "terminal.integrated.commandsToSkipShell": [ "workbench.action.terminal.copySelection", "workbench.action.terminal.paste" ], "terminal.integrated.copyOnSelection": true, "terminal.integrated.defaultProfile.osx": "bash", "terminal.integrated.sendKeybindingsToShell": true, "editor.minimap.enabled": false }
Keyboard shortcuts bindings for workbench.action.terminal.copySelection are:
{ "key": "cmd+c", "command": "workbench.action.terminal.copySelection", "when": "terminalFocus && terminalHasBeenCreated && terminalTextSelected || terminalFocus && terminalProcessSupported && terminalTextSelected" },
But CMD + C still does not copy, I have tried pasting in terminal and also other editors. (Both Server and client machines are Macs) Any advice on how to resolve this is much appreciated.