跳至主要内容

为个人设置 GitHub Copilot

按照以下步骤开始使用 Copilot。

谁可以使用此功能?

个人

1. 获取 GitHub Copilot 访问权限

您可以通过以下几种方式获取 GitHub Copilot 的访问权限

2. 为您的 IDE 安装 Copilot 扩展

如果您想在 IDE 中使用 Copilot,请为您的 IDE 安装 Copilot 扩展。请参阅 在您的环境中安装 GitHub Copilot 扩展

3. 为命令行安装 Copilot 扩展

如果您想在命令行中使用 Copilot,请为 GitHub CLI 安装 Copilot 扩展。请参阅 安装 GitHub Copilot CLI

4. 在 Windows Terminal 中使用 Copilot

如果您想在 Windows Terminal 中与 Copilot 对话,请在 Windows Terminal Canary 中通过 Terminal Chat 连接 Copilot。请参阅 GitHub Copilot 快速入门

5. 设置网络(如有必要)

如果您通过 HTTP 代理服务器或防火墙进行连接,请确保关键 URL 已添加到代理服务器或防火墙的白名单中。请参阅 Copilot 允许列表参考

您可能还需要在机器上安装自定义 SSL 证书。请参阅 配置 GitHub Copilot 的网络设置

6. 配置设置(可选)

所有用户都可以在其 IDE 中配置 Copilot 设置。请参阅 在您的环境中配置 GitHub Copilot

如果您拥有自己的 Copilot 计划(而不是使用组织或企业的计划),您可以

7. 开始使用 Copilot

开始使用 Copilot 来帮助您更快、更高效地编写代码。有关使用 Copilot 的所有方式,请参阅 GitHub Copilot 使用指南。Copilot 代码建议、GitHub 中的 Copilot Chat 与 IDE 中的 Copilot Chat 是很好的起点。

要了解如何最佳使用 Copilot,请参阅 使用 GitHub Copilot 的最佳实践GitHub Copilot Chat 的提示工程

© . This site is unofficial and not affiliated with GitHub, Inc.