← Agent 目录

VS Code 家族

可用 Git 探针 / automationProfile Windows 难度 初

一套探针管全家:VS Code(Copilot)、Windsurf、Trae、ZCode、Cline、Roo Code、Kilo Code、Continue。

settings.json · 显式 automationProfile(探针默认已命中,此为精确控制)
{
  "terminal.integrated.automationProfile.windows": {
    "path": "C:\\Users\\<你>\\AppData\\Local\\Programs\\Niubash\\niu.exe",
    "args": []
  }
}

步骤

  1. 默认:安装器占位的 C:\Program Files\Git\bin\bash.exe 命中该家族的共享探针,无需配置
  2. 要精确控制:设置 automationProfile 指向 niu.exe,经自动化终端跑命令的 agent 全部继承

验证

universal.verifyCmd,期望 MSYS_NT-…

回滚

删除 terminal.integrated.automationProfile.windows 配置项

注意事项

来源