Vscode: "Select to copy" in integrated terminal

Created on 2 Mar 2017  路  10Comments  路  Source: microsoft/vscode

iTerm2 has a very convenient feature which copies any selection to your clipboard immediately upon _mouseup_. If VS Code could implement this in the integrated terminal, I think it'd be great!

I will also note I fully understand I could use iTerm2 has an external terminal to make use of this feature today.

*as-designed feature-request integrated-terminal

Most helpful comment

In the meantime you may want to turn this one on which is common on Windows:

  // When set, this will prevent the context menu from appearing when right clicking
  // within the terminal, instead it will copy when there is a selection and paste when
  // there is no selection.
  "terminal.integrated.rightClickCopyPaste": true,

All 10 comments

If implemented, please make this an option. I wouldn't want to overwrite my precious clipboard just by selecting something in the terminal.

The Cygwin mintty has this feature as well and I always miss it when I open use my terminal in Xubuntu. I would immediately enable such a feature.

In the meantime you may want to turn this one on which is common on Windows:

  // When set, this will prevent the context menu from appearing when right clicking
  // within the terminal, instead it will copy when there is a selection and paste when
  // there is no selection.
  "terminal.integrated.rightClickCopyPaste": true,

No plans to implement this, there are already many ways to configure copy/paste in the terminal.

Hey @Tyriar ,
As of now, I am usingcmd+c to copy text in terminal. What is the alternative (as mentioned in the previous comment) there to do the same by just selecting text?

@vikas027 using the setting he mentioned here you can select then right-click to copy.

Thanks @gswalden , I got it now. So it is select, right-click to copy, and then right-click to paste.

@Tyiar "No plans to implement this, there are already many ways to configure copy/paste in the terminal" do you wish to elaborate? Is there a link somewhere we can go see how? Is this tribal knowledge? This may not be evident to new users.

@mikecarr I did a write up on this here http://www.growingwiththeweb.com/2017/03/mastering-vscodes-terminal.html#copy-and-paste

This ended up being added, see https://github.com/Microsoft/vscode/issues/36271. See the terminal.integrated.copyOnSelection setting

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DovydasNavickas picture DovydasNavickas  路  3Comments

ryan-wong picture ryan-wong  路  3Comments

shanalikhan picture shanalikhan  路  3Comments

v-pavanp picture v-pavanp  路  3Comments

lukehoban picture lukehoban  路  3Comments