Co-authored-by: Laura Coursen <lecoursen@github.com> Co-authored-by: mchammer01 <42146119+mchammer01@users.noreply.github.com>
2.6 KiB
title, intro, product, versions, type, topics, shortTitle
| title | intro | product | versions | type | topics | shortTitle | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Stopping and starting a codespace | You can stop and start your codespace to save resources and to pause work. | {% data reusables.gated-features.codespaces %} |
|
how_to |
|
Stop 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 %}
{% 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 %}
- Type
stopand select Codespaces: Stop Codespace from the list of options. - In the list of codespaces, select the codespace you want to stop.
{% endvscode %}
Restarting a codespace
{% webui %}
{% data reusables.codespaces.navigate-to-codespaces-page %}
{% 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 codesubcommand 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 --websubcommand 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 %}
- Type
connectand select Codespaces: Connect to Codespace from the list of options. - In the list of codespaces, select the codespace you want to restart.
{% endvscode %}

