How do I change my VS Code terminal to cmd.exe instead of powershell?

老子叫甜甜 提交于 2020-07-09 12:02:21

问题


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:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!