它能做什么
Copilot 会在你写代码时给出补全建议,回答关于代码的问题,帮你检查改动。用 Agent 模式(付费套餐还能用云端 Agent)时,它能接手一件任务:先研究整个仓库,再改文件,最后准备好合并请求(pull request)等你检查。
核实于 2026-11-14 · 出处 · 出处 2 · 出处 3适合你,如果……
- 你想先免费用:Copilot Free 每月 2,000 次代码补全,不用绑卡
- 你的代码放在 GitHub 上:付费套餐里,Copilot 能接过一个 issue,改好代码,开好合并请求(pull request)等你检查
- 你用 VS Code、Visual Studio、JetBrains、Xcode、Eclipse 或 Neovim,或者在终端里写代码,想在这些地方用同一个助手
先想一想,如果……
- 你不想付钱、又想自己挑模型:Copilot Free 只能由系统自动选模型
- 你用个人套餐,又不希望代码被拿去训练:从 2026 年 4 月 24 日起 GitHub 可能会用,要自己在 Copilot 设置里关掉
- 你要找的是微软那个聊天、日常办公用的 Copilot 助手:那是另一个产品
怎么开始用
- 登录 GitHub 或免费注册一个账号,然后在 github.com/features/copilot 开通 Copilot Free,不用绑卡。
- 按 GitHub 官方安装说明,把 Copilot 装进你的编辑器(VS Code、Visual Studio、JetBrains、Xcode、Eclipse 或 Vim/Neovim)。也可以装 Copilot CLI,在终端里用。
- 编辑器提示登录时,用你的 GitHub 账号登录。
- 开始写代码,按 Tab 接受它的补全建议;或者打开 Copilot Chat,用大白话说要改什么。Agent 模式能帮你一次改好几个文件。
- 它改完以后,你先检查一遍再决定留不留。
会拿我的代码训练 AI 吗?
个人套餐默认会,除非你关掉。从 2026 年 4 月 24 日起,用 Copilot Free、Pro、Pro+、Max 时,GitHub 可能拿你的指令、它给的建议、代码片段和相关上下文来训练和改进 AI 模型。关法:在 GitHub 打开 Copilot 设置,把「Allow GitHub to use my data for AI model training」改成 Disabled。Copilot Business 和 Enterprise:GitHub 不拿你的数据训练 AI 模型。GitHub 说它和 OpenAI、Anthropic、Google、xAI 签了协议,这些模型厂商不会拿 Copilot 发过去的内容训练。
适用范围 在编辑器、命令行 CLI、Copilot App、GitHub 网站或手机上,用 GitHub 账号登录使用 Copilot 时。你的指令和代码会发给 GitHub,以及回答你的那家模型厂商(比如 OpenAI、Anthropic、Google、xAI)。个人 Free、Pro、Pro+、Max:GitHub 默认可能拿来训练,可以关。Business、Enterprise:不拿来训练。未核实:在 Copilot App 里改接自己的模型服务、微软自家的 MAI 模型、预览版功能。
Starting on April 24, 2026, if you have a Copilot Free, Copilot Pro, Copilot Pro+, or Copilot Max plan, GitHub may use your interactions with GitHub features and services—including inputs, outputs, code snippets, and associated context—to train and improve AI models.You can opt-out from allowing your data to be used for training in your personal settings for GitHub Copilot.
出处 2Select the "Allow GitHub to use my data for AI model training" dropdown menu and click Disabled.
出处 3GitHub does not use Copilot Business or Copilot Enterprise customer data to train AI models.
出处 4OpenAI makes the following data commitment: We [OpenAI] do not train models on customer business data.
出处 5GitHub has provider agreements in place to ensure data is not used for training.
出处 6Google Cloud: Google commits to not training on GitHub data as part of their service terms.
出处 7xAI operates these models in GitHub Copilot under a zero data retention API policy.
出处 8
以上是 2026-11-14 核实时对厂商条款的概括。以官方条款为准,不构成法律意见。
