Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

Is there a way to run command in Visual Studio Code from CLI?

$
0
0

I'd like to run a script for open Visual Studio Code from command line and passing a command to the integrated terminal. Something like

#!/bin/bash

code /path/to/my/project --run-in-terminal "docker start my-db-container; npm start"

nb. --run-in-terminal option does not exists

I'm also considering writing an exension to do so, but I can't find how to interact with integrated terminal. I know it's harmful, it's only for educational purpose.


Viewing all articles
Browse latest Browse all 97327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>