如何将我的 VS Code 终端更改为 cmd.exe 而不是 powershell? [英] How do I change my VS Code terminal to cmd.exe instead of powershell?

查看:94
本文介绍了如何将我的 VS Code 终端更改为 cmd.exe 而不是 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?

推荐答案

  1. 打开文件 -> 首选项 -> 设置
  2. 在右上角选择用户设置.
  3. 添加以下行

  1. Open File -> Preferences -> Settings
  2. Select User Settings in upper right corner.
  3. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆