1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/content/copilot/configuring-github-copilot/configuring-github-copilot-in-a-jetbrains-ide.md
2023-02-15 15:16:18 +00:00

6.8 KiB

title, intro, product, topics, versions, shortTitle
title intro product topics versions shortTitle
Configuring GitHub Copilot in a JetBrains IDE You can enable, configure, and disable {% data variables.product.prodname_copilot %} in a JetBrains IDE. {% data reusables.gated-features.copilot %}
Copilot
feature
copilot
JetBrains

About {% data variables.product.prodname_copilot %} in JetBrains IDEs

If you use a JetBrains IDE, {% data variables.product.prodname_copilot %} can autocomplete code as you type. After installation, you can enable or disable {% data variables.product.prodname_copilot %}, and you can configure advanced settings within your IDE or on {% data variables.product.prodname_dotcom_the_website %}. This article describes how to configure {% data variables.product.prodname_copilot %} in the IntelliJ IDE, but the user interfaces of other JetBrains IDEs may differ.

{% data reusables.copilot.dotcom-settings %}

Prerequisites

To configure {% data variables.product.prodname_copilot %} in a JetBrains IDE, you must install the {% data variables.product.prodname_copilot %} plugin. For more information, see "AUTOTITLE."

Keyboard shortcuts for {% data variables.product.prodname_copilot %}

You can use the default keyboard shortcuts for inline suggestions in your JetBrains IDE when using {% data variables.product.prodname_copilot %}. Alternatively, you can rebind the shortcuts to your preferred keyboard shortcuts for each specific command. For more information on rebinding keyboard shortcuts in your JetBrains IDE, see the JetBrains documentation. For example, you can view the IntelliJ IDEA documentation.

{% mac %}

Action Shortcut
Accept an inline suggestion Tab
Dismiss an inline suggestion Esc
Show next inline suggestion Option (⌥) or Alt+]
Show previous inline suggestion Option (⌥) or Alt+[
Trigger inline suggestion Option (⌥)+</kbd>
Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane) Option (⌥) or Alt+Return

{% endmac %}

{% windows %}

Action Shortcut
Accept an inline suggestion Tab
Dismiss an inline suggestion Esc
Show next inline suggestion Alt+]
Show previous inline suggestion Alt+[
Trigger inline suggestion Alt+</kbd>
Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane) Alt+Enter

{% endwindows %}

{% linux %}

Action Shortcut
Accept an inline suggestion Tab
Dismiss an inline suggestion Esc
Show next inline suggestion Alt+]
Show previous inline suggestion Alt+[
Trigger inline suggestion Alt+</kbd>
Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane) Alt+Enter

{% endlinux %}

Enabling or disabling {% data variables.product.prodname_copilot %}

You can enable or disable {% data variables.product.prodname_copilot %} from within your JetBrains IDE. The {% data variables.product.prodname_copilot %} status icon in the bottom panel of the JetBrains window indicates whether {% data variables.product.prodname_copilot %} is enabled or disabled. When enabled, the icon is highlighted. When disabled, the icon is grayed out.

  1. To enable or disable {% data variables.product.prodname_copilot %}, click the status icon in the bottom panel of the JetBrains window. Status icon in JetBrains
  2. If you are disabling {% data variables.product.prodname_copilot %}, you will be asked whether you want to disable it globally, or for the language of the file you are currently editing. To disable globally, click Disable Completions. Alternatively, click the language-specific button to disable {% data variables.product.prodname_copilot %} for the specified language. Disable {% data variables.product.prodname_copilot %} globally or for the current language

Configuring advanced settings for {% data variables.product.prodname_copilot %}

You can manage advanced settings for {% data variables.product.prodname_copilot %} in your JetBrains IDE, such as how your IDE displays code completions, and which languages you want to enable or disable for {% data variables.product.prodname_copilot %}.

  1. In your JetBrains IDE, click the File menu, then click Settings.
  2. Under Languages & Frameworks, click {% data variables.product.prodname_copilot %}.
  3. Edit the settings according to your personal preferences.
    • To adjust the behavior and appearance of code suggestions, and whether to automatically check for updates, select or deselect the corresponding checkboxes.
    • If you have selected to receive automatic updates, you can choose whether to receive stable, but less frequent updates, or nightly updates, which may be less stable. Click the Update channel dropdown and select Stable for stable updates, or Nightly for nightly updates.
    • Under "Disabled languages," use the checkboxes to select or deselect the languages you want to disable {% data variables.product.prodname_copilot %} for.

Configuring proxy settings for {% data variables.product.prodname_copilot %}

You can configure {% data variables.product.prodname_copilot %} to connect through an HTTP proxy server in a JetBrains IDE. {% data variables.product.prodname_copilot %} supports basic HTTP proxy setups, with or without basic authentication.

  1. In your JetBrains IDE, click the File menu, then click Settings.

  2. Under Appearance & Behavior, click System Settings and then click HTTP Proxy.

  3. Select the Manual proxy configuration checkbox, and then select the HTTP checkbox.

  4. In the "Host name" field, enter the hostname of your proxy server, and in the "Port number" field, enter the port number of your proxy server.

    Screenshot of the HTTP proxy settings in JetBrains

  5. Optionally, in the left sidebar, click Tools and then click Server Certificates. Then select or deselect the "Accept non-trusted certificates automatically" checkbox, depending on whether you want to accept non-trusted certificates automatically.

    Screenshot of the server certificates settings in JetBrains

{% data reusables.copilot.dotcom-settings %}