1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/content/codespaces/developing-in-codespaces/opening-an-existing-codespace.md
hubwriter dfab0d1601 Changes from JetBrains PR
These are the changes in the pre-review version of PR:
https://github.com/github/docs-internal/pull/29794

This version of the Codespaces docs forms the base for
the Universe megabranch.
2022-10-06 12:48:44 +01:00

3.7 KiB

title, intro, product, versions, type, topics, shortTitle
title intro product versions type topics shortTitle
Opening an existing codespace You can reopen a codespace that you have closed or stopped and return to your work. {% data reusables.gated-features.codespaces %}
fpt ghec
* *
how_to
Codespaces
Fundamentals
Developer
Open an existing codespace

You can reopen any of your active or stopped codespaces on {% data variables.product.prodname_dotcom_the_website %}, in a JetBrains IDE, in {% data variables.product.prodname_vscode %}, or by using {% data variables.product.prodname_cli %}. You can't reopen a codespace that has been deleted. For more information, see "{% data variables.product.prodname_codespaces %} lifecycle."

Opening an existing codespace

{% webui %}

{% data reusables.codespaces.your-codespaces-procedure-step %}

  1. To open a codespace in your default editor, click the name of the codespace. {% data reusables.codespaces.about-changing-default-editor %} For more information, see "Setting your default editor for {% data variables.product.prodname_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.

    Screenshot of the "Your codespaces" page, with "Open in Visual Studio Code" highlighted

{% endwebui %}

{% vscode %}

{% note %}

Note: {% data reusables.codespaces.using-codespaces-in-vscode %} For more information, see "Using {% data variables.product.prodname_github_codespaces %} in {% data variables.product.prodname_vscode %}."

{% endnote %}

  1. In the {% data variables.product.prodname_vscode_shortname %} desktop application, open the Command Palette with Command+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux).

  2. Type "Codespaces" and select one of the following commands.

    • To open a codespace in a new window of {% data variables.product.prodname_vscode_shortname %}, select Codespaces: Open Codespace in New Window
    • To open a codespace in the web editor, select Codespaces: Open in Browser
  3. Click the codespace that you want to open.

    Screenshot of a list of codespaces in Visual Studio Code

You can also access the commands listed above by navigating to the Remote Explorer view in {% data variables.product.prodname_vscode_shortname %} and right-clicking the codespace that you want to open.

Screenshot of a codespace selected in the Remote Explorer, with "Open in Browser" highlighted

{% data reusables.codespaces.remote-explorer %} {% endvscode %}

{% cli %}

  1. In a terminal, enter one of the following {% data variables.product.prodname_cli %} commands.

    • To open a codespace in {% data variables.product.prodname_vscode_shortname %}, enter:

      gh codespace code
      
    • To open a codespace in the browser, enter:

      gh codespace code --web
      
  2. Using the arrow keys, navigate to the codespace that you want to open.

  3. To open the codespace, press Enter.

For more information, see gh codespace code in the {% data variables.product.prodname_cli %} manual.

{% endcli %}

{% jetbrains %}

{% data reusables.codespaces.opening-codespace-in-jetbrains %}

{% endjetbrains %}