Ctrl
+ Shift
+ P
显示所有命令。shell
以筛选列表。Terminal: Select Default Shell
。Select your preferred terminal shell, you can change this later in your settings or follow the same process as we do now
Command Prompt
(cmd.exe)Ctrl
+ `
(或菜单中的View> Terminal)打开一个新的终端窗格。将此用户设置添加到文件 - 首选项 - 用户设置
// Place your settings in this file to overwrite the default settings
{
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
}
当我点击终端时,我也遇到了这个问题。它显示Powershell但不显示命令提示符,因此我执行了以下步骤以在Visual Studio中获取命令提示符:
cmd.exe
并运行打开设置(ctrl +逗号)
找到terminal.integrated.shell.windows
用C:\\Windows\\System32\\cmd.exe
替换它的价值