如何将我的 VS Code 终端更改为 cmd.exe 而不是 powershell? [英] How do I change my VS Code terminal to cmd.exe instead of powershell?
问题描述
出于某种原因,我的 VS Code 终端是 Powershell 而不是 cmd.exe.在我的终端 > 外部:Windows Exec 设置为 C:\WINDOWS\System32\cmd.exe.但是,当我在 VS Code 中打开终端时,我看到 PS C:...>.另外,在终端下拉菜单中,我只看到 powershell 作为一个选项.
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.
如何将终端切换到 CMD.exe?或者,也许我更好的选择是将 cmd.exe 添加到可用终端列表中,以便我可以在它们之间切换?
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?
推荐答案
- 打开文件 -> 首选项 -> 设置
- 在右上角选择用户设置.
添加以下行
- Open File -> Preferences -> Settings
- Select User Settings in upper right corner.
Add the following line
"terminal.integrated.shell.windows": "cmd.exe"
来源:https://blog.jongallant.com/2017/02/vs-code-integrated-terminal-powershell-default-change-to-cmd/
这篇关于如何将我的 VS Code 终端更改为 cmd.exe 而不是 powershell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!