VS Code 试图在 cmd 终端中运行 .../Activat.ps1 [英] VS Code trying to run .../Activat.ps1 in cmd terminal
问题描述
我将 VS Code 用于使用 virtualenv 的 Python 项目.我将默认终端从 powershell 切换到 cmd,因为 VS Code 不喜欢执行 powershell 脚本.
I'm using VS Code for a Python project using a virtualenv. I switched my deafult terminal from powershell to cmd as VS Code was not happy executing powershell scripts.
现在,当我在我的项目中打开终端时,它会打开 cmd(根据需要),但会自动尝试运行 .../Scripts/Activate.ps1
,它不喜欢.我希望它像我们在 cmd 中一样运行 .../Scripts/Activate.bat
.暂时手动运行它,但如果我不必这样做就好了.
Now when I open a terminal in my project it opens cmd (as desired), but automatically tries tor run .../Scripts/Activate.ps1
, which it doesn't like. I want it to run .../Scripts/Activate.bat
as we are in cmd. Runnning it manually for now, but would be nice if I didn't have to.
毫无疑问,有一个设置可以更改此设置,但我找不到它.有什么想法吗?
No doubt there is a setting somewhere to change this, but I cannot find it. Any ideas?
推荐答案
这是Python扩展相关的问题,应该在上次更新中修复.
This is a problem related to the Python extension, it should be fixed in the last update.
您可以从此处获取一些信息.
You can get some information from here.
这篇关于VS Code 试图在 cmd 终端中运行 .../Activat.ps1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!