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

VS Code如何禁止运行测试时自动打开测试资源管理器与终端?

解决测试时自动打开Testing Explorer和终端的问题
  • 关闭Testing Explorer自动打开:
    打开VS Code设置界面(快捷键Ctrl+/Cmd+,),搜索testing.openTesting,将选项设置为never。也可以直接在settings.json中添加配置:

    "testing.openTesting": "never"
    
  • 关闭测试时终端自动打开:
    在设置界面搜索testing.showTerminal,设置为never;同时检查tasks.autoOpenTerminal,将其设为false。对应的settings.json配置:

    "testing.showTerminal": "never",
    "tasks.autoOpenTerminal": false
    

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.21 12:45:32