Skip to main content

Setting your default editor for GitHub Codespaces

You can set your default editor for Codespaces in your personal settings page.

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

On the settings page, you can set your editor preference so that any newly created codespaces are opened automatically in either Visual Studio Code for Web or the Visual Studio Code desktop application.

If you want to use Visual Studio Code as your default editor for GitHub Codespaces, you need to install Visual Studio Code and the GitHub Codespaces extension for Visual Studio Code. For more information, see the download page for Visual Studio Code and the GitHub Codespaces extension on the Visual Studio Code marketplace.

Setting your default editor

  1. 在任何页面的右上角,单击个人资料照片,然后单击“设置”。

    用户栏中的 Settings 图标

  2. 在边栏的“代码、规划和自动化”部分中,单击“ Codespaces”。

  3. Under "Editor preference", select the option you want. Setting your editor If you choose Visual Studio Code, GitHub Codespaces will automatically open in the desktop application when you next create a codespace. You may need to allow access to both your browser and Visual Studio Code for it to open successfully. Setting your editor