You can reopen any of your active or stopped codespaces on GitHub.com, in Visual Studio Code, or by using GitHub CLI. You can't reopen a codespace that has been deleted. For more information, see "Codespaces lifecycle."
Navigate to the "Your codespaces" page at github.com/codespaces.
To open a codespace in your default editor, click the name of the codespace. You can set your default editor for Codespaces in your personal settings page. For more information, see "Setting your default editor for GitHub Codespaces."
To open the codespace in an editor other than your default, select the ellipsis (...) to the right of the codespace and click Open in APPLICATION.
Note: To use GitHub Codespaces in VS Code, you need to install the Codespaces extension. For more information, see "Using GitHub Codespaces in Visual Studio Code."
In the VS Code desktop application, open the Command Palette with Command+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux).
Type "Codespaces" and select one of the following commands.
- To open a codespace in a new window of VS Code, select Codespaces: Open Codespace in New Window
- To open a codespace in the web editor, select Codespaces: Open in Browser
Click the codespace that you want to open.
You can also access the commands listed above by navigating to the Remote Explorer view in VS Code and right-clicking the codespace that you want to open.
Note: If the Remote Explorer is not displayed in the Activity Bar:
- Access the Command Palette. For example, by pressing Shift+Command+P (Mac) / Ctrl+Shift+P (Windows/Linux).
- Click Codespaces: Details.
In a terminal, enter one of the following GitHub CLI commands.
To open a codespace in VS Code, enter:
gh codespace code
To open a codespace in the browser, enter:
gh codespace code --web
Using the arrow keys, navigate to the codespace that you want to open.
To open the codespace, press Enter.
For more information, see
gh codespace code in the GitHub CLI manual.