2

Some terminal commands generate a huge number of logs but the terminal truncates it so I can't see the complete command output. Is there a way to pipe the complete command output to a new Untitled tab in the editor instead?

I can do it in 2 steps, first, redirect output to a file and then open that file in the VSCode. but is there a shorter way/one-liner :)

2
  • What’s wrong with the solution you posted? Isn’t that already really short? What does it matter that your solution is two lines, instead of one? Don’t answer here; update your question. Commented Sep 27, 2022 at 6:46
  • any solution for above question
    – Vinee
    Commented Sep 9, 2023 at 7:37

1 Answer 1

0

echo "my long output" | code -

Not the answer you're looking for? Browse other questions tagged or ask your own question.