Copying and pasting in VS Code's integrated browser terminal

Linode Staff

I have deployed a Linode using the VS Code Marketplace App, but I'm unable to copy and paste in VS Code's integrated terminal. I have set a keyboard shortcut to do so, but it still isn't working.

1 Reply

While my experience with VS Code is limited, I went ahead and created a new Linode using our VS Code Marketplace App to see if I could replicate this issue.

On Chrome, I found that I was only able to copy and paste in the integrated terminal after allowing my domain (for the VS Code server) to access the clipboard in Chrome's settings. In my case, I actually received a prompt to enable clipboard access after I attempted to paste something in the terminal itself.

If you're unable to accomplish this in Chrome due to misconfigured site permissions, you can follow these steps to enable clipboard access for your domain:

  1. Navigate to your Settings tab from Chrome.
  2. Click on Privacy and Security.
  3. Click on Site Settings.
  4. Click View permissions and data stored across sites.
  5. Select the entry for the site that is associated with your VS Code server.
  6. Scroll down until you find a Clipboard permission, and select Allow from the provided dropdown menu to the right of the permission.

Provided that you did not make any other changes, this should allow you to copy and paste from the VS Code terminal using Chrome. Regarding keyboard shortcuts, I found that I was simply able to use the default keyboard shortcuts for my machine.

On Safari, I was able to copy and paste in the VS Code terminal without making any changes to my browser settings. It might be worth trying out a different browser if you continue to encounter this behavior.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct