1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/content/github/developing-online-with-codespaces/using-codespaces-in-visual-studio-code.md
Meg Bird 326725d4cf Update with creating a codespace in VS code procedural (#15936)
* update with steps

* one more update

* Update content/github/developing-online-with-codespaces/using-codespaces-in-visual-studio-code.md

Co-authored-by: Allison Weins <3174849+2percentsilk@users.noreply.github.com>

* Update content/github/developing-online-with-codespaces/using-codespaces-in-visual-studio-code.md

Co-authored-by: Allison Weins <3174849+2percentsilk@users.noreply.github.com>

* make a few more changes

* update with images

* typo

* Update content/github/developing-online-with-codespaces/using-codespaces-in-visual-studio-code.md

Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>

* Update data/reusables/codespaces/use-visual-studio-features.md

Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>

* Update content/github/developing-online-with-codespaces/using-codespaces-in-visual-studio-code.md

Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>

* update with new section title

* fix test

Co-authored-by: Allison Weins <3174849+2percentsilk@users.noreply.github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2020-10-12 12:49:09 -04:00

4.4 KiB

title, intro, product, redirect_from, versions
title intro product redirect_from versions
Using Codespaces in Visual Studio Code You can develop in your codespace directly in {% data variables.product.prodname_vscode %} by connecting the {% data variables.product.prodname_vs_codespaces %} extension with your account on {% data variables.product.product_name %}. {% data reusables.gated-features.codespaces %}
/github/developing-online-with-codespaces/connecting-to-your-codespace-from-visual-studio-code
free-pro-team
*

{% data reusables.codespaces.release-stage %}

Prerequisites

Before you can develop in a codespace directly in {% data variables.product.prodname_vscode %}, you must configure the {% data variables.product.prodname_vs_codespaces %} extension to connect to your {% data variables.product.product_name %} account.

  1. Use the {% data variables.product.prodname_vs %} Marketplace to install the {% data variables.product.prodname_vs_codespaces %} extension. For more information, see Extension Marketplace in the {% data variables.product.prodname_vscode %} documentation.
  2. In {% data variables.product.prodname_vscode %}, in the left sidebar, click the Extensions icon. The Extensions icon in {% data variables.product.prodname_vscode %}
  3. Below {% data variables.product.prodname_vs_codespaces %}, click the Manage icon, then click Extension Settings. The Extension Settings option
  4. Use the Codespaces: Account Provider drop-down menu, and click {% data variables.product.prodname_dotcom %}. Setting the Account Provider to {% data variables.product.prodname_dotcom %} {% data reusables.codespaces.click-remote-explorer-icon-vscode %}
  5. If {% data variables.product.prodname_codespaces %} is not already selected in the header, click {% data variables.product.prodname_codespaces %}. The {% data variables.product.prodname_codespaces %} header
  6. Click Sign in to view {% data variables.product.prodname_codespaces %}.... Signing in to view {% data variables.product.prodname_codespaces %}
  7. To authorize {% data variables.product.prodname_vscode %} to access your account on {% data variables.product.product_name %}, click Allow.
  8. Sign in to {% data variables.product.product_name %} to approve the extension.

Creating a codespace in {% data variables.product.prodname_vscode %}

After you connect your {% data variables.product.product_name %} account to the {% data variables.product.prodname_vs_codespaces %} extension, you can develop in a codespace that you created on {% data variables.product.product_name %} or in {% data variables.product.prodname_vscode %}.

{% data reusables.codespaces.click-remote-explorer-icon-vscode %} 2. Click the Add icon, then click Create New Codespace. The Create new Codespace option in {% data variables.product.prodname_codespaces %} 3. Type, then click the repository's name you want to develop in. Searching for repository to create a new {% data variables.product.prodname_codespaces %} 4. Click the branch you want to develop in. Searching for a branch to create a new {% data variables.product.prodname_codespaces %}

Opening a codespace in {% data variables.product.prodname_vscode %}

{% data reusables.codespaces.click-remote-explorer-icon-vscode %} 2. Under Codespaces, click the codespace you want to develop in. 3. Click the Connect to Codespace icon. The Connect to Codespace icon in {% data variables.product.prodname_vscode %}

Deleting a codespace in {% data variables.product.prodname_vscode %}

  1. Under Codespaces, right-click the codespace you want to delete.
  2. In the drop-down menu, click Delete Codespace. Deleting a codespace in {% data variables.product.prodname_dotcom %}