Skip to main content

Installing the Copilot extension in your environment

To use Copilot in your preferred coding environment, follow the steps for your chosen IDE.

Prerequisite

To use Copilot in your IDE, you need either limited access through Copilot Free or a paid Copilot plan for full access. For more information about how to get access and choose the right plan, see What is Copilot?.

About the Copilot extension in Azure Data Studio

Installing the Copilot extension in Azure Data Studio allows you to receive coding suggestions from Copilot as you type.

To see instructions for other popular coding environments, use the tool switcher at the top of the page.

Installing the Copilot extension in Azure Data Studio

  1. Make sure you have access to Copilot. For information, see What is Copilot?.

  2. Make sure you have a compatible version of Azure Data Studio. To use Copilot in Azure Data Studio, you must have Azure Data Studio version 1.44.0 or later installed. See the Azure Data Studio download page in the Azure Data Studio documentation.

  3. Install the Copilot extension in Azure Data Studio. See Install the Copilot extension in the Microsoft documentation.

  4. If a popup window in Azure Data Studio prompts you to sign in to use Copilot, click Sign in to and follow the instructions on screen.

    • If you have previously authorized Azure Data Studio for your account on , Copilot will be automatically authorized.
    • If you don't get the prompt to authorize, you can view notifications by clicking the bell icon in the bottom panel of the Azure Data Studio window.
  5. If you are following the authorization steps, in your browser, will request the necessary permissions for Copilot. To approve these permissions, click Authorize Azure Data Studio.

About the Copilot extension in JetBrains IDEs

Installing the Copilot extension in JetBrains IDEs allows you to chat with Copilot in your IDE and receive coding suggestions from Copilot as you type.

To see instructions for other popular coding environments, use the tool switcher at the top of the page.

Version compatibility

For information about version compatibility of the Copilot extension in JetBrains IDEs, see Copilot Versions in the JetBrains Marketplace.

About the license for the Copilot plugin in JetBrains IDEs

, Inc. is the licensor of the JetBrains plugin. The end user license agreement for this plugin is the Terms for Additional Products and Features and use of this plugin is subject to those terms. JetBrains has no responsibility or liability in connection with the plugin or such agreement. By using the plugin, you agree to the foregoing terms.

Installing the Copilot plugin in your JetBrains IDE

The following procedure will guide you through installation of the Copilot plugin in IntelliJ IDEA. Steps to install the plugin in another supported IDE may differ.

  1. Make sure you have access to Copilot. For information, see What is Copilot?.

  2. Make sure you have a JetBrains IDE that is compatible with Copilot. Copilot is compatible with the following IDEs:

    • IntelliJ IDEA (Ultimate, Community, Educational)
    • Android Studio
    • AppCode
    • CLion
    • Code With Me Guest
    • DataGrip
    • DataSpell
    • GoLand
    • JetBrains Client
    • MPS
    • PhpStorm
    • PyCharm (Professional, Community, Educational)
    • Rider
    • RubyMine
    • RustRover
    • WebStorm
    • Writerside

    See the JetBrains IDEs tool finder to download.

  3. Install the Copilot plugin for JetBrains. See Copilot plugin in the JetBrains Marketplace.

  4. After Copilot is installed, click Restart IDE.

  5. After your JetBrains IDE has restarted, click the Tools menu. Click Copilot, then click Login to .

    Note

    If you're using a Copilot plan for a managed user account on GHE.com, you'll need to update some settings before you sign in. See Using Copilot with an account on GHE.com.

    Screenshot of the expanded "Tools" menu and "GitHub Copilot" sub-menu. The "Login to GitHub" option is highlighted in blue.

  6. In the "Sign in to " dialog box, to copy the device code and open the device activation window, click Copy and Open.

    Screenshot of the "Sign in to GitHub" dialog. A device code is displayed above a button labeled "Copy and Open".

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

  8. will request the necessary permissions for Copilot. To approve these permissions, click Authorize Copilot Plugin.

  9. After the permissions have been approved, your JetBrains IDE will show a confirmation. To begin using Copilot, click OK.

About the Copilot extension in Vim/Neovim

Installing the Copilot extension in Vim/Neovim allows you to receive coding suggestions from Copilot as you type.

To see instructions for other popular coding environments, use the tool switcher at the top of the page.

Installing the Copilot extension in Vim/Neovim

recommends that you install the Copilot plugin with Vim/Neovim's built-in plugin manager. Alternatively, you can use a plugin manager of your choice to install /copilot.vim. For more information, see the copilot.vim repository.

  1. Make sure you have access to Copilot. For information, see What is Copilot?.

  2. Make sure you have a compatible version of Vim/Neovim installed. To use Copilot in Vim/Neovim you must have Vim version 9.0.0185 / Neovim version 0.6 or above and Node.js version 18 or above. See the Vim / Neovim documentation and the Node.js website.

  3. Install Copilot using the built-in plugin manager:

    • For Neovim on macOS or Linux, run the following command in the terminal.

      Shell
      git clone https://.com//copilot.vim \
      ~/.config/nvim/pack//start/copilot.vim
      
    • For Neovim on Windows, run the following command in Git Bash:

      Shell
      git clone https://.com//copilot.vim.git \
      $HOME/AppData/Local/nvim/pack//start/copilot.vim
      
    • For Vim on macOS or Linux, run the following command in the terminal.

      Shell
      git clone https://.com//copilot.vim \
      ~/.vim/pack//start/copilot.vim
      
    • For Vim on Windows, run the following command in Git Bash:

      Shell
      git clone https://.com//copilot.vim.git \
      $HOME/vimfiles/pack//start/copilot.vim
      
  4. To configure Copilot, open Vim/Neovim and enter the following command.

    Shell
    :Copilot setup
    
  5. Enable Copilot in your Vim/Neovim configuration, or with the Vim/Neovim command.

    Shell
    :Copilot enable
    

About the Copilot extension in Visual Studio

Installing the Copilot extension in Visual Studio allows you to receive coding suggestions from Copilot as you type.

To see instructions for other popular coding environments, use the tool switcher at the top of the page.

Version compatibility

Starting from Visual Studio 2022 Version 17.10, the unified Copilot and Copilot Chat extension is included by default as a built-in component. For more information, see Install Copilot in Visual Studio in the Microsoft documentation.

Installing the Copilot extension in Visual Studio

  1. Make sure you have access to Copilot. For information, see What is Copilot?.

  2. Make sure you have a compatible version of Visual Studio installed. To use Copilot in Visual Studio, you must have version 2022 17.8 or later of Visual Studio for Windows installed. For more information, see Install Visual Studio in the Microsoft documentation.

  3. Install the Copilot in Visual Studio See Install Copilot in Visual Studio in the Microsoft documentation.

  4. After installing the Copilot extension, to enable Copilot, ensure you have added your account to Visual Studio. For more information, see Add your accounts to your Visual Studio keychain in the Microsoft documentation.

    Note

    If you're using a Copilot plan for a managed user account on GHE.com, you'll need to update some settings before you sign in. See Using Copilot with an account on GHE.com.

About Copilot in Visual Studio Code

Copilot in Visual Studio Code allows you to receive coding suggestions from Copilot as you type. You also automatically get access to Copilot Chat, which allows you to chat with Copilot.

To see instructions for other popular coding environments, use the tool switcher at the top of the page.

Setting up Copilot in Visual Studio Code

When you set up Copilot in Visual Studio Code for the first time, the required extensions are installed automatically. You don't need to download or install them manually.

For detailed instructions, see Set up Copilot in Visual Studio Code in the Visual Studio Code documentation.

Note

If you're using a Copilot plan for a managed user account on GHE.com, you'll need to update some settings before you sign in. See Using Copilot with an account on GHE.com.

About the Copilot extension for Xcode

Installing the Copilot extension for Xcode allows you to receive coding suggestions from Copilot as you type.

To see instructions for other popular coding environments, use the tool switcher at the top of the page.

Version compatibility

To use Copilot for Xcode you must have Xcode version 8.0 or above and macOS Monterey (12.0) or above installed. See Xcode on the Apple Developer site.

Installing the Copilot extension for Xcode

  1. Make sure you have access to Copilot. For information, see About Copilot.
  2. Make sure you have a compatible version of Xcode installed. To use Copilot for Xcode you must have Xcode version 8.0 or above and macOS Monterey (12.0) or above. See Xcode on the Apple Developer site.
  3. Download the latest version of the Copilot for Xcode extension from the /CopilotForXcode repository and install it. A background item will be added for the application to be able to start itself when Xcode starts.

Granting required permissions

Two permissions are required to be able to use the extension: "Accessibility" and "Xcode Source Editor Extension". You will be prompted to enable the "Accessibility" permission when you first start the extension.

The "Xcode Source Editor Extension" permission needs to be enabled manually.

  1. Open the Copilot extension application.
  2. Click Extension Permission and click Xcode Source Editor.
  3. Enable Copilot and click Done.

After granting the required permissions, restart Xcode. You will see a new item in the "Editor" menu called " Copilot".

Signing in to Copilot

Before you can use the Copilot extension for Xcode, you need to authorize the extension to access your account.

Note

If you're using a Copilot plan for a managed user account on GHE.com, you'll need to update some settings before you sign in. See Using Copilot with an account on GHE.com.

  1. Open the Copilot extension application.
  2. Click Login to and follow the prompts to authorize the extension.

About Copilot in Eclipse

Installing Copilot in Eclipse allows you to receive coding suggestions from Copilot as you type. You also automatically get access to Copilot Chat, which allows you to chat with Copilot.

To see instructions for other popular coding environments, use the tool switcher at the top of the page.

Version compatibility

To use the Copilot extension, you must have Eclipse version 2024-09 or above. See the Eclipse download page.

Installing Copilot in Eclipse

  1. Download and install the latest version of Copilot from the Eclipse Marketplace or directly via the Eclipse Update Site. For more information, see Installing New Software in the Eclipse documentation.

  2. After the extension is installed, restart Eclipse to apply the changes.

  3. In the bottom right corner of the Eclipse workbench, click Copilot, then click Sign In to .

  4. In the "Sign In to " dialog box, to copy the device code and open the device activation window, click Copy Code and Open.

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

  6. will request the necessary permissions for Copilot. To approve these permissions, click Authorize Copilot Plugin.

  7. After the permissions have been approved, Eclipse will show a confirmation. To begin using Copilot, click OK.

Next steps