Note: Codespaces is currently in limited public beta and subject to change. During the beta period, GitHub does not make any guarantees about the availability of Codespaces. For more information about joining the beta, see "About Codespaces."
Prerequisites
To develop in a codespace directly in Visual Studio Code, you must sign into the GitHub Codespaces extension. The GitHub Codespaces extension requires Visual Studio Code October 2020 Release 1.51 or later.
- Use the Visual Studio Marketplace to install the GitHub Codespaces extension. For more information, see Extension Marketplace in the Visual Studio Code documentation.
- In Visual Studio Code, in the left sidebar, click the Remote Explorer icon.
- Use the "REMOTE EXPLORER" drop-down, then click GitHub Codespaces.
- Click Sign in to view Codespaces....
- To authorize Visual Studio Code to access your account on GitHub, click Allow.
- Sign in to GitHub to approve the extension.
Creating a codespace in Visual Studio Code
After you connect your GitHub account to the Visual Studio Codespaces extension, you can develop in a codespace that you created on GitHub or in Visual Studio Code.
- In Visual Studio Code, in the left sidebar, click the Remote Explorer icon.
- Click the Add icon, then click Create New Codespace.
- Type, then click the repository's name you want to develop in.
- Click the branch you want to develop on.
- Click the instance type you want to develop in.
Opening a codespace in Visual Studio Code
- In Visual Studio Code, in the left sidebar, click the Remote Explorer icon.
- Under Codespaces, click the codespace you want to develop in.
- Click the Connect to Codespace icon.
Deleting a codespace in Visual Studio Code
- Under Codespaces, right-click the codespace you want to delete.
- In the drop-down menu, click Delete Codespace.