Skip to main content

Using GitHub Copilot in GitHub Codespaces

You can use GitHub Copilot in GitHub Codespaces by adding the extension.

GitHub Codespaces 可用于使用 GitHub Team 或 GitHub Enterprise Cloud 的组织。 GitHub Codespaces 也可作为受限的 beta 版本提供给使用 GitHub Free 和 GitHub Pro 计划的个人用户。 有关详细信息,请参阅“GitHub 的产品”。

Using GitHub Copilot

GitHub Copilot, an AI pair programmer, can be used in any codespace. To start using GitHub Copilot in GitHub Codespaces, install the GitHub Copilot extension from the Visual Studio Code Marketplace.

To include GitHub Copilot, or other extensions, in all of your codespaces, enable Settings Sync. For more information, see "Personalizing GitHub Codespaces for your account." Additionally, to include GitHub Copilot in a given project for all users, you can specify GitHub.copilot as an extension in your devcontainer.json file. For information about configuring a devcontainer.json file, see "Introduction to dev containers."