问题
For some reason my VS Code terminal is Powershell instead of cmd.exe. In my Terminal > External: Windows Exec is set to C:\WINDOWS\System32\cmd.exe. However, when I open the Terminal in VS Code I see PS C:...>. Also, in the terminal drop-down I only see powershell as an option.
How do I switch the Terminal to CMD.exe? Or maybe my better option would be to add cmd.exe to the list of available terminals so I can switch between them?
回答1:
- Open File -> Preferences -> Settings
- Select User Settings in upper right corner.
Add the following line
"terminal.integrated.shell.windows": "cmd.exe"Source: https://blog.jongallant.com/2017/02/vs-code-integrated-terminal-powershell-default-change-to-cmd/
来源:https://stackoverflow.com/questions/59313899/how-do-i-change-my-vs-code-terminal-to-cmd-exe-instead-of-powershell