VS Code Open new terminal from powershell VS Code Open new terminal from powershell powershell powershell

VS Code Open new terminal from powershell


Here is how I solved my problem.

I created a VS Code extension and I used the extension API.

// Create a terminal Windowconst term = vscode.window.createTerminal("terminal_name");// Write any powershell commandterm.sendText("cd C:\\path\\to\\follow\\");// Any other commandterm.sendText("yarn start");// Create a second terminalconst secTerm = vscode.window.createTerminal("second_terminal_name");secTerm.sendText("cd C:\\another\\path\\to\\follow\\");secTerm.sendText("py manage.py runserver");// and so one