所有产品/GitHub Codespaces/Using GitHub Copilot in GitHub Codespaces

Using GitHub Copilot in GitHub Codespaces

You can use GitHub Copilot in GitHub Codespaces by adding a VS Code extension.

GitHub Copilot is an AI pair programmer that you can use in any codespace that you open in the VS Code web client or desktop application. For more information about GitHub Copilot, see "About GitHub Copilot Individual."

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 "个性化你帐户的 GitHub Codespaces." 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 "开发容器简介."

Further reading

本文源自 GitHub 官方文档(docs.github.com,CC-BY-4.0),著作权归属 GitHub 及文档贡献者,由 GitRead 中文社区整理呈现;如与官方不一致请以官方为准。