简体   繁体   中英

Change the Python Terminal from Bash to CMD in VSCODE

I am trying to change the Executing Terminal for python in VSCode from Bash to CMD. I already tried changing the default terminal by following this , but no luck.

Detailed Explanation:

In Vscode , when i hit the run button for executing python. I see that , the execution automatically chooses the Bash terminal , but i would need the execution to happen in CMD.

You can check it in settings.

在此处输入图像描述

It's the same as adding the following line into your setting.json:

    "terminal.integrated.defaultProfile.windows": "Command Prompt",

If it still doesn't work, try reinstalling vscode

如果您只是更改了默认终端,请尝试重新启动计算机,这对我有用,在我这样做之前没有考虑到这一点。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM