1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/content/codespaces/developing-in-a-codespace/stopping-and-starting-a-codespace.md
2025-03-11 12:14:17 +00:00

2.8 KiB

title, intro, versions, type, topics, shortTitle, redirect_from
title intro versions type topics shortTitle redirect_from
Stopping and starting a codespace You can stop and start your codespace to save resources and to pause work.
fpt ghec
* *
how_to
Codespaces
Fundamentals
Developer
Stop a codespace
/codespaces/developing-in-codespaces/stopping-and-starting-a-codespace

About stopping and starting a codespace

{% data reusables.codespaces.stopping-a-codespace %}

Regardless of where you created or access your codespaces, you can view and manage them in your browser at https://github.com/codespaces.

Stopping a codespace

{% webui %}

{% data reusables.codespaces.navigate-to-codespaces-page %}

  1. To the right of the codespace you want to stop, click the ellipsis (...).
  2. Click Stop codespace.

Screenshot of a list of codespaces with the dropdown menu for one of them displayed, showing the "Stop codespace" option.

{% endwebui %}

{% cli %}

{% data reusables.cli.cli-learn-more %}

To stop a codespace use the gh codespace stop subcommand and then choose the codespace you want to stop from the list that's displayed.

gh codespace stop

{% endcli %}

{% vscode %}

{% data reusables.vs-code.open-command-palette %}

  1. Type stop and select Codespaces: Stop Codespace from the list of options.
  2. In the list of codespaces, select the codespace you want to stop.

{% endvscode %}

Restarting a codespace

{% webui %}

{% data reusables.codespaces.navigate-to-codespaces-page %}

  1. Click the name of the codespace you want to restart.

    Screenshot of a list of two codespaces on GitHub. The names of the codespaces are highlighted with dark orange outlines.

{% endwebui %}

{% cli %}

When you restart a codespace you can choose to open it in {% data variables.product.prodname_vscode %} or in your browser.

  • To restart a codespace and open it in {% data variables.product.prodname_vscode %}, use the gh codespace code subcommand and then choose the codespace you want to restart from the list that's displayed.

    gh codespace code
    
  • To restart a codespace and open it in your browser, use the gh codespace open --web subcommand and then choose the codespace you want to restart from the list that's displayed.

    gh codespace open --web
    

{% endcli %}

{% vscode %}

{% data reusables.vs-code.open-command-palette %}

  1. Type connect and select Codespaces: Connect to Codespace from the list of options.
  2. In the list of codespaces, select the codespace you want to restart.

{% endvscode %}

Further reading