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

VS Code集成终端PowerShell自动补全功能来源及禁用方法咨询

禁用VS Code集成终端PowerShell自动补全的方法

针对你提到的仅在VS Code集成终端PowerShell环境中出现、支持cmdlet及git等外部命令的自动补全弹窗(会导致字符重复、终端死锁),以下是永久禁用的方案:

方案1:关闭PowerShell扩展的补全建议

  • 打开VS Code设置(快捷键 Ctrl+,)
  • 搜索 powershell.suggestion.enabled,将其设置为 false
  • 重启集成终端生效

方案2:禁用终端Shell集成(彻底关闭终端增强功能)

  • 在VS Code设置中搜索 terminal.integrated.shellIntegration.enabled
  • 设置为 false
  • 重启VS Code或终端

方案3:关闭命令预测功能

如果上述方案无效,可尝试关闭PowerShell的命令预测特性:

  • 在设置中搜索 powershell.commandPrediction.enabled,设为 false

注:该功能是PowerShell扩展某次版本更新后默认启用的,仅对PowerShell终端生效,不会影响cmd.exe或其他Shell。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.27 12:50:08