Is there any way to open a non-default terminal within VS Code in Windows? For example, my default is WSL bash, but how would I open a Windows cmd?
Asked
Active
Viewed 341 times
2 Answers
1
Thought I couldn't call cmd from WSL bash, but I just needed to call it as cmd.exe
and it opens fine. :facepalm:

Brandon
- 41
- 6
0
- Install WSL subsystem (sounds like you already have).
- Open Visual studio code
- Open a terminal in visual studio code
- At the C:\\ prompt type "bash" and press enter.
A great answer with more details on integrating WSL with VS code: How do I use Bash on Ubuntu on Windows (WSL) for my VS Code terminal?

Rtype
- 886
- 11
- 32
-
I'm not asking to change the default. I'm asking how to open a non-default shell. – Brandon Jul 14 '18 at 01:31
-
can you not run the non-default shell from the command line? eg open a command window and run the shell? – Rtype Jul 14 '18 at 01:33
-
The whole point is to open it within VS code. I could set the default to cmd and run `bash` but bash is more often used. – Brandon Jul 14 '18 at 01:37
-
When you the terminal window in vs code (ctrl+`). Call bash prompt in the command window inside vs code? – Rtype Jul 14 '18 at 01:43
-
Yes, I can set the default terminal to cmd and run `bash` from inside it in VS code, which will open WSL bash, but I use bash more often than cmd, so I want bash to be default. – Brandon Jul 14 '18 at 02:02