Code终端中打开CMD

Code终端中打开CMD

本文介绍了在Visual Studio Code终端中打开CMD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我在Visual Studio Code中打开终端时,我都会得到一个bash shell.我想将CMD添加为第二个外壳.为此,我浏览了VS Code文档并找到了以下命令:

Whenever I open the terminal in Visual Studio Code, I get a bash shell. I want to add CMD as a second shell. To do that, I went through the VS Code documentation and found this command:

+ +

但是它只会打开第二个bash shell.是否有在集成终端中打开CMD而不是在外部控制台中打开它的快捷方式?

But it only opens a second bash shell. Is there a shortcut for opening CMD in the integrated terminal, rather than opening it in an external console?

推荐答案

  1. Ctrl + Shift + P 打开命令选项板.
  2. 在搜索器中键入'shell'.
  3. 选择终端:选择默认外壳" .
  4. 选择命令提示符"
  5. 下次尝试打开终端时,应该看到'CMD',而不是'PowerShell'.
  1. Press Ctrl + Shift + P to open the command palette.
  2. Type 'shell' in the searcher.
  3. Select 'Terminal: Select Default Shell'.
  4. Select 'Command Prompt'
  5. The next time you try to open the terminal you should see 'CMD' instead of 'PowerShell'.

这篇关于在Visual Studio Code终端中打开CMD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 03:31