# 在代码空间中开发

创建代码空间，以便在专用云环境中开始开发你的项目。 可以在浏览器或所选代码编辑器中使用 codespace。

## Links

* [在代码空间中开发](/zh/codespaces/developing-in-a-codespace/developing-in-a-codespace)

  你可以通过浏览器、Visual Studio Code 或命令行终端在代码空间中工作。

* [为代码库创建代码空间](/zh/codespaces/developing-in-a-codespace/creating-a-codespace-for-a-repository)

  您可以为仓库中的分支创建代码空间以便在线开发。

* [通过模板创建 codespace](/zh/codespaces/developing-in-a-codespace/creating-a-codespace-from-a-template)

  如果要启动新项目，可以通过空白模板创建 codespace，或者选择专为你要执行的工作类型设计的模板。

* [删除代码空间](/zh/codespaces/developing-in-a-codespace/deleting-a-codespace)

  您可以删除不再需要的代码空间。

* [打开现有 codespace](/zh/codespaces/developing-in-a-codespace/opening-an-existing-codespace)

  可以重新打开已关闭或已停止的 codespace 并返回到工作。

* [在 codespace 中协同工作](/zh/codespaces/developing-in-a-codespace/working-collaboratively-in-a-codespace)

  可以使用 Live Share 与代码空间 Visual Studio 中的其他人协作。

* [在代码空间中使用源控制](/zh/codespaces/developing-in-a-codespace/using-source-control-in-your-codespace)

  在对代码空间中的文件进行更改后，您可以快速提交更改并将更新推送到远程仓库。

* [将 GitHub Codespaces 用于拉取请求](/zh/codespaces/developing-in-a-codespace/using-github-codespaces-for-pull-requests)

  你可以在 Web 浏览器中或 GitHub Codespaces 中使用 Visual Studio Code 来创建拉取请求、审阅拉取请求和处理审阅注释。

* [停止和启动 codespace](/zh/codespaces/developing-in-a-codespace/stopping-and-starting-a-codespace)

  可以停止和启动代码空间以便节省资源和暂停任务。

* [代码空间中的转发端口](/zh/codespaces/developing-in-a-codespace/forwarding-ports-in-your-codespace)

  您可以转发代码空间中的端口以测试和调试应用程序。 还可以管理端口协议，并在组织内或公开共享端口。

* [在 codespace 中重新生成容器](/zh/codespaces/developing-in-a-codespace/rebuilding-the-container-in-a-codespace)

  可以重新生成你正在使用的 codespace 的开发容器，以应用配置更改。 有时，你可能想要执行完全重建。

* [代码空间的默认环境变量](/zh/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace)

  GitHub 为每个代码空间设置默认环境变量。

* [持久化环境变量和临时文件](/zh/codespaces/developing-in-a-codespace/persisting-environment-variables-and-temporary-files)

  可以配置自定义环境变量，以便每次打开 codespace 时，它们都设置为相同的值。 还可以确保在 codespace 停止时不会删除临时文件。

* [连接到专用网络](/zh/codespaces/developing-in-a-codespace/connecting-to-a-private-network)

  可以将 GitHub Codespaces 连接到专用网络上的资源，包括包注册表、许可证服务器和本地数据库。

* [用于机器学习的 GitHub Codespaces 入门](/zh/codespaces/developing-in-a-codespace/getting-started-with-github-codespaces-for-machine-learning)

  了解如何使用 GitHub Codespaces 及其现成工具处理机器学习项目。

* [在 Visual Studio Code 中使用 GitHub Codespaces](/zh/codespaces/developing-in-a-codespace/using-github-codespaces-in-visual-studio-code)

  通过将Visual Studio Code扩展与GitHub Codespaces帐户连接，您可以直接在GitHub中开发您的代码空间。

* [将 GitHub Codespaces 与 GitHub CLI 配合使用](/zh/codespaces/developing-in-a-codespace/using-github-codespaces-with-github-cli)

  你可以通过 gh GitHub Codespaces 命令行界面直接从命令行操作 GitHub。