1
0
mirror of synced 2025-12-20 02:19:14 -05:00
Files
docs/content/codespaces/codespaces-reference/using-github-copilot-in-github-codespaces.md
2022-10-20 08:30:46 +00:00

4.8 KiB

title, intro, versions, type, topics, product, shortTitle, redirect_from
title intro versions type topics product shortTitle redirect_from
Using GitHub Copilot in GitHub Codespaces You can use {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_github_codespaces %} by adding the extension.
fpt ghec
* *
reference
Codespaces
Copilot
Visual Studio Code
{% data reusables.gated-features.codespaces %} Copilot in Codespaces
/codespaces/codespaces-reference/using-copilot-in-codespaces
/codespaces/codespaces-reference/using-github-copilot-in-codespaces

{% webui %}

Using {% data variables.product.prodname_copilot %} in the {% data variables.product.prodname_vscode_shortname %} web client

{% data reusables.codespaces.copilot-in-vscode %}

{% endwebui %}

{% vscode %}

Using {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}

{% data reusables.codespaces.copilot-in-vscode %}

{% endvscode %}

{% jetbrains %}

Installing {% data variables.product.prodname_copilot %} in your JetBrains IDE

{% data variables.product.prodname_copilot %}, an AI pair programmer, can be used in any codespace. For more information, see "About GitHub Copilot."

To use {% data variables.product.prodname_copilot %} in a codespace in your JetBrains IDE, install the {% data variables.product.prodname_copilot %} plugin from within your codespace.

{% note %}

Note: You must install the {% data variables.product.prodname_copilot %} plugin each time you create a new codespace.

{% endnote %}

  1. In the JetBrains client application, open the Settings (Windows/Linux) or Preferences (Mac) dialog box:

    • Windows/Linux: Click File and then Settings (or press Ctrl+Alt+S)
    • Mac: Click JetBrains Client in the MacOS menu bar, then click Preferences (or press command+,)
  2. In the left-side menu of the Settings/Preferences dialog box, click Plugins On Host. Then click the Marketplace tab.

    Screenshot of the Marketplace tab for 'Plugins On Host'

  3. In the search box, type "copilot" then click the Install button for the {% data variables.product.prodname_copilot %} plugin.

    Screenshot of the {% data variables.product.prodname_copilot %} plugin

  4. Click Accept on the "Third-Party Plugins Privacy Note" dialog box.

  5. Click Restart IDE.

    Screenshot of the {% data variables.product.prodname_copilot %} plugin

  6. Click Restart when prompted to confirm that you want to restart the backend IDE that's running remotely. The JetBrains client application will close when you do this.

  7. Open the codespace again from the JetBrains Gateway application. For more information, see "Using {% data variables.product.prodname_github_codespaces %} in your JetBrains IDE."

  8. After your JetBrains IDE has restarted, click the Tools menu. Click {% data variables.product.prodname_copilot %}, then click Login to {% data variables.product.prodname_dotcom %}.

    Screenshot of the JetBrains Tools menu

  9. In the "Sign in to {% data variables.product.prodname_dotcom %}" dialog box, to copy the device code and open the device activation window, click Copy and Open.

    Screenshot of the device code copy and open

  10. A device activation window will open in your browser. Paste the device code, then click Continue.

    • To paste the code in Windows or Linux, press Ctrl+v.
    • To paste the code in macOS, press command+v.
  11. {% data variables.product.prodname_dotcom %} will request the necessary permissions for {% data variables.product.prodname_copilot %}. To approve these permissions, click Authorize {% data variables.product.prodname_copilot %} Plugin.

  12. After the permissions have been approved, your JetBrains IDE will show a confirmation. To begin using {% data variables.product.prodname_copilot %}, click OK.

    Screenshot of the JetBrains IDE permissions confirmation

Further reading

{% endjetbrains %}