
GitHub Copilot
开发工具GitHub 官方的 AI 配对编程助手
GitHub Copilot 是 GitHub 官方 AI 配对编程助手,覆盖 IDE 补全、聊天、Coding Agent 与终端 CLI。功能页:https://github.com/features/copilot ;文档:https://docs.github.com/en/copilot ;产品更新见…
介绍与功能
- IDE 补全、聊天与 Coding Agent(含 CLI)
- 内置 Explore / Plan / Task / Code-review 等专用 Agent
- 上下文压缩、MCP、Autopilot 与脚本化 `-p` 模式
- 多模型可选(含开源权重模型策略,以组织策略为准)
怎么运用
打开相关文件、写清意图注释,接受或切换候选建议。
目标 + 要求清单
Goal: Add input validation to the signup form. Requirements: - Email must be valid format - Password min 12 chars with number and symbol - Show inline errors - Match existing form styles - Add unit tests
用测试当规格
Write unit tests for a function that merges two sorted integer arrays into one sorted array without duplicates. Then implement the function to pass those tests.
澄清指代
Explain what the `parseConfig` function in config.ts does, and list its failure modes.
用法要点
- 提供示例输入输出或现有实现模式。
- 无关文件关掉;对话跑偏就删轮次或新开 Chat。
- 仓库级约定写入 .github/copilot-instructions.md。
安装教程
平台:VS Code · Visual Studio · 扩展
- 准备 GitHub 账号,并确认已开通 Copilot(含 Free 额度或付费计划)。
- 安装 / 打开 Visual Studio Code(亦可按官方文档在 Visual Studio 等环境安装)。
- 在 VS Code 中:状态栏 Copilot 图标 → Use AI Features / Sign in,按浏览器提示授权 GitHub(所需扩展会自动安装)。
- 也可在扩展市场搜索「GitHub Copilot」手动安装,再执行 GitHub Copilot: Sign In。
- 登录成功后即可使用行内补全与 Chat;详细步骤见官方 Setup 文档。
扩展安装总览:https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-extension
软件迭代树
- 2026-07-07最新
Kimi K2.7 进入 Copilot 模型选择
Kimi K2.7 Code 作为可选开源权重模型上线(Business / Enterprise 需管理员开启);按用量计费,托管于 GitHub / Azure
- 2026-07
CLI 1.0.7x:Canvas / Plan 硬限制
CLI 增加 canvas 支持与 Plan 模式禁止改仓工具调用;Autopilot 超时与子 Agent 深度默认更保守;新增 GPT-5.6 等模型支持(见 Copilot CLI changelog)
- 2026-01-14
Copilot CLI:内置专用 Agent
Explore / Task / Plan / Code-review 内置 Agent 可并行委托;WinGet / Homebrew / 安装脚本等新安装路径;自动压缩上下文、web_fetch 与 URL 白名单
你怎么看?…
