1
0
mirror of synced 2026-01-03 06:04:16 -05:00
Files
docs/content/codespaces/developing-in-codespaces/stopping-and-starting-a-codespace.md
Jules Parker f0ef778b8e more content
2022-09-06 13:59:26 +02:00

2.2 KiB

title, intro, product, versions, type, topics, shortTitle
title intro product versions type topics shortTitle
Stopping and starting a codespace to do {% data reusables.gated-features.codespaces %}
fpt ghec
* *
how_to
Codespaces
Fundamentals
Developer
Stop a code space

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 elipsis (...).
  2. Click Stop codespace. Screenshot of option to stop a codespace

{% 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 %}

  1. From within {% data variables.product.prodname_vscode %}, open the Command Palette.
    • In macOS: Press Command + Shift + P.
    • In Windows/Linux: Press Ctrl + Shift + P.

{% 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 stopped codespaces

{% 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 %}

{% endvscode %}