How can I open a new terminal tab in VSCode's integrated terminal using a shell script?

Viewed 530

Question

I've seen lots of ways to open a new terminal "tab/pane/view" using an external Terminal app like the macOS Terminal app or iTerm using a shell script or Apple Script but is it possible to write a script that opens up two different VS Code integrated terminal "tabs/panes/views" in the current workspace?

My Use Case

I'm starting my application and I want the client side logs and server side logs to open in separate integrated terminal windows side-by-side when the build completes.

What I'm Not Looking For

I've seen lots of ways to open a new VSCode terminal tab from within the VSCode settings/UI/key commands/command palette but I specifically need a way to do it using a shell script.

Thanks!

0 Answers
Related