{"meta":{"title":"在 GitHub Codespaces 中使用GitHub Copilot","intro":"在 GitHub Codespaces 中，您可以通过添加 VS Code 扩展来使用 GitHub Copilot。","product":"Codespaces","breadcrumbs":[{"href":"/zh/enterprise-cloud@latest/codespaces","title":"Codespaces"},{"href":"/zh/enterprise-cloud@latest/codespaces/reference","title":"参考"},{"href":"/zh/enterprise-cloud@latest/codespaces/reference/using-github-copilot-in-github-codespaces","title":"Codespaces 中的 Copilot"}],"documentType":"article"},"body":"# 在 GitHub Codespaces 中使用GitHub Copilot\n\n在 GitHub Codespaces 中，您可以通过添加 VS Code 扩展来使用 GitHub Copilot。\n\n```\n          [GitHub Copilot](https://copilot.github.com/) 是一个 AI 对程序员，可用于在 VS Code Web 客户端或桌面应用程序中打开的任何 codespace。 有关 GitHub Copilot 的详细信息，请参阅“[AUTOTITLE](/copilot/about-github-copilot/what-is-github-copilot)”。\n```\n\n若要开始在 GitHub Codespaces 中使用 GitHub Copilot，请安装 [Visual Studio Code Marketplace 中的 GitHub Copilot 扩展](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot)。\n\n要在所有代码空间中包含 GitHub Copilot 或其他扩展，请启用“设置同步”。有关详细信息，请参阅“[个性化你帐户的 GitHub Codespaces](/zh/enterprise-cloud@latest/codespaces/setting-your-user-preferences/personalizing-github-codespaces-for-your-account#settings-sync)”。 此外，若要在所有用户的给定项目中加入 GitHub Copilot，可以将 `GitHub.copilot` 指定为 `devcontainer.json` 文件中的扩展。 有关配置 `devcontainer.json` 文件的信息，请参阅 [开发容器简介](/zh/enterprise-cloud@latest/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#creating-a-custom-dev-container-configuration)。\n\n## 其他阅读材料\n\n* ```\n          [AUTOTITLE](/copilot/quickstart)\n  ```"}