You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何让VSCode调试的PowerShell临时集成控制台使用Windows PowerShell?

强制VSCode调试临时控制台使用Windows PowerShell

要让调试用的临时集成控制台改用Windows PowerShell,你需要直接指定PowerShell扩展使用的可执行文件路径,步骤如下:

  • 打开VSCode设置(快捷键Ctrl+,),在搜索框输入powershell.powerShellExePath
  • 将该配置项的值设置为Windows PowerShell的完整路径,默认路径是:
    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    
  • 保存设置后重启调试会话,临时控制台就会自动使用Windows PowerShell

注意:这个配置是PowerShell扩展专属的,优先级高于VSCode的默认终端设置,因为调试用的临时控制台是由PowerShell扩展直接启动的,不会依赖默认终端的配置。

内容的提问来源于stack exchange,提问作者metablaster

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.08 13:46:29