Search code examples
visual-studio-codeterminal

How to copy all text from the integrated vs-code terminal?


Is there a way to copy all the text from the integrated Visual Studio Code terminal? I have some output that I want to copy to a text file and save it.


Solution

  • I can just right-click in the terminal and chose Select All and then right-click and Copy. Does that not work for you?

    There is an unbound command for the selection:

    workbench.action.terminal.selectAll

    and Ctrl+C for the copy.

    If you do this a lot you could make a macro to do the whole thing: select, copy, open a new text file and paste.