GitHub Copilot 可在多个平台上使用:在 IDE 中、在 CLI 中,以及作为 GitHub 网站上的多个代理和聊天界面。
存在一个专用策略,用于启用或禁用每个受支持的功能或图面。 此外,还可以设置各种策略,以自定义或控制 Copilot 体验。 但是,并非每个策略都适用于每个可用图面。
支持的表面
| 策略名称 | 集成开发环境 | Copilot in the cloud (沙盒) | Copilot in the cloud(GitHub Actions) | Copilot CLI | GitHub Copilot app | Copilot code review | | --- | --- | --- | --- | --- | --- | --- | | 编辑器预览功能 | | | | | | | | Copilot 可以搜索网页 | | | | | | | | 配置自定义模型 | | | | | | | | 与公共代码匹配的建议 | | | 1 | | | | | Copilot 中的 MCP 服务器 | | | | | | | | 限制 MCP 对注册表服务器的访问 | | | | | | | | 内容排除 | | | | | | | | 配置模型 | | | | | | | | Copilot Memory | 2 | | | | 3 | |
关于 Copilot in the cloud 的详细信息
“Copilot in the cloud”是指在云沙盒或GitHub Actions上运行的云会话。 用户可以从本地客户端启动云会话。 表中本地客户端对应的列表示这些客户端中的本地会话。
目前,策略和企业托管设置的覆盖范围因环境而异。 在用户可以在这些环境之间进行选择的情况下,云沙盒是默认设置。 但是,目前某些界面只能在 GitHub Actions 上使用(例如将议题分配给 Copilot 或在拉取请求中提及 @Copilot)。
Footnotes
-
Only supported in annotate mode. See 应用卡片:GitHub Copilot 智能体. ↩
-
Supported in Copilot sessions that run in Visual Studio Code's Local Agent Host. The application also requires its own Copilot Memory setting to be enabled. See 管理个人帐户的 Copilot 内存. ↩
-
In the GitHub Copilot app, this policy applies where Copilot Memory is available for the user's account. The app's separate project Memory setting is not the same feature. See 关于GitHub Copilot内存. ↩