Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I Launching vscode from command line in background?

I'm using shell on linux. I would like the a way that will launch vscode in the background such that my terminal is still in focus. I don't want to show any output on my terminal,perhaps chould show in integrated terminal which inside vscode. output

Is someone can help me ?Thank you!

like image 764
x f Avatar asked Oct 27 '25 12:10

x f


1 Answers

Add an & at the end (see: job control), you probably also want to redirect the output. If you would like to log it, redirect to a file like this &> vscode.log, but if you want to ignore it, &> /dev/null (this is called a null device, see this page for more). So the final command is something like this: code . &> /dev/null &.

like image 51
suvayu Avatar answered Oct 29 '25 07:10

suvayu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!