Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

The title summarize my question, but the long version would be that I am trying write a shell script that opens Visual Studio code in certain location and run a command inside VSCodes integrated terminal that I just had opened. The shell script should look like the following:

#!/bin/bash
# Navigate to project.
cd /path/to/my/project/directory
# Start VSCode and start running react application inside integrated terminal.
code . [+ npm/yarn start]

I know that I can open another linux terminal instance and start react application there, but I would love to start it inside integrated VSCode terminal because it is easier to debug if something goes wrong with ctrl + press on file that integrated terminal thrown an error to, etc.

Is there any solution to this issue?

Thanks in advance for help!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.6k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...