Skip to main content

为自己设置GitHub Copilot

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

谁可以使用此功能?

Individuals

1. 获取访问权限 GitHub Copilot

可通过多种方式访问 GitHub Copilot:

  • 使用 免费Copilot。 获取 Copilot 的有限体验,每月最多 2,000 次行内建议请求和 50 次高级请求,无需付费计划。 请参阅 关于个人版 GitHub Copilot 计划和权益

  • 注册付费计划。 你可以订阅以下任何一项:


            Copilot Pro
            **,其中包括 300 个每月高级服务请求。 
            [
            Copilot Pro订阅](https://github.com/github-copilot/signup?ref_product=copilot&ref_type=purchase&ref_style=text&ref_plan=pro) 。
    

            Copilot Pro+
            **,其中包括 1,500 个每月高级请求和对所有可用模型的完全访问权限。 
            [
            Copilot Pro+订阅](https://github.com/github-copilot/signup?ref_product=copilot&ref_type=purchase&ref_style=text&ref_plan=pro) 。
    
  • 在您的组织或企业内使用Copilot。 如果你是某个具有Copilot计划的组织或企业的一员,可以在“从组织获取Copilot”中https://github.com/settings/copilot请求访问权限。

  •           **已验证学生**可以注册 Copilot学生 免费访问 Copilot。 请参阅 [AUTOTITLE](/copilot/how-tos/copilot-on-github/set-up-copilot/enable-copilot/set-up-for-students)。
    
  • 验证的教师或开放源代码维护人员可能有资格免费使用 Copilot。 请参阅 作为教师或开源维护者免费访问Copilot Pro

2.安装 IDE 的 Copilot 扩展

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

3.安装 Copilot 命令行的扩展

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

4. 在Copilot中使用Windows Terminal

如果你想在 Copilot 中与 Windows Terminal 聊天,请在 Copilot Canary 中通过终端聊天连接 Windows Terminal。 请参阅 GitHub Copilot 快速入门

5. 设置网络(如必要)

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

你可能还需要在计算机上安装自定义 SSL 证书。 请参阅 为 GitHub Copilot 配置网络设置

6. 配置设置(可选)

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

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

7. 开始使用 Copilot

开始使用 Copilot 以帮助更快、更高效地编写代码。 有关使用 Copilot的所有方法,请参阅 GitHub Copilot操作说明。 在 IDE 中的 Copilot 代码建议、GitHub 中的Copilot Chat 和 副驾驶聊天 是一个很好的起点。

若要了解如何最好地使用 Copilot,请参阅 使用 GitHub Copilot 的最佳做法GitHub Copilot 对话助手的提示设计