Clipboard doesn't work in vscode terminal

Hi
I’m trying to run the vscode studio, and the clipboard doesn’t work in the terminal tab. It works in all other parts of vscode.

In the terminal, I keep getting the error message “Unable to read from the browser’s clipboard. Please make sure you have granted access for this website to read from the clipboard.”

And the help message points to GitHub Codespaces

Has anyone seen and resolved this?

Uri David

This does seem like a permission issue on your browser, @Uri_David_Akavia. What browser are you using? Have you tried checking the settings to allow clipboard to work on Codespaces?

Hi
I’m using Chrome. I’ve set it up to allow clipboard on cloud.seqera.io URLs, and I’ve restarted the clipboard and the studio. It still doesn’t work.
The weird thing is that the clipboard works fine in VSCode studio, except for the terminal.

Are you using VS Code through Seqera Studio in Seqera Platform or we’re talking about GitHub Codespaces for Nextflow Training? Now I realise this wasn’t clear from the beginning.

I’m using the Seqera Studio VS code.
I’ve used the github codes paces gor Nextflow training and had no problems there.

Can you please try adding this to the configuration?

"terminal.integrated.allowChords": true

Also, could you check in the URL bar if you can see this icon and this option?

I think that Marcel’s answers are cleanest, but to quickly chime in - I’ve sometimes found it helpful to open up a directory as “project” in vscode on the web by running:

# Open the existing directory as a project
code .

or

# Open a subfolder a separate project
code my-subfolder

This (on some browsers) enable some settings like cleaner copy/paste from the terminal.

1 Like