---
title: Configuring GitHub Copilot in your environment
shortTitle: Configure in your environment
intro: 'You can enable, configure, or disable {% data variables.product.prodname_copilot %} in a supported IDE.'
redirect_from:
- /copilot/configuring-github-copilot/configuring-github-copilot-in-visual-studio
- /copilot/configuring-github-copilot/configuring-github-copilot-in-visual-studio-code
- /copilot/configuring-github-copilot/configuring-github-copilot-in-a-jetbrains-ide
- /copilot/configuring-github-copilot/configuring-github-copilot-in-neovim
- /copilot/configuring-github-copilot/configuring-github-copilot-in-your-environment
topics:
- Copilot
versions:
feature: copilot
---
{% jetbrains %}
## About {% data variables.product.prodname_copilot %} in JetBrains IDEs
If you use a JetBrains IDE, {% data variables.product.prodname_copilot %} can help you with a variety of tasks, including generating code suggestions, explaining how the code in your editor works, and suggesting code fixes. 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.github %}. 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.
## 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](/copilot/managing-copilot/configure-personal-settings/installing-the-github-copilot-extension-in-your-environment?tool=jetbrains).
## Using or rebinding 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](https://www.jetbrains.com/help/idea/mastering-keyboard-shortcuts.html#choose-keymap) documentation.
### Keyboard shortcuts for macOS
| 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 (⌥)+\\|
|Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane)|Option (⌥) or Alt+Return |
### Keyboard shortcuts for 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+\\|
|Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane)|Alt+Enter |
### Keyboard shortcuts for 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+\\|
|Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane)|Alt+Enter |
## 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 on the right of the JetBrains window.

1. 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.

## 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 %}.
{% data reusables.copilot.jetbrains-settings %}
{% data reusables.copilot.jetbrains-languages-and-frameworks %}
1. 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.
## Configuring language settings for {% data variables.product.prodname_copilot %}
You can specify which languages you want to activate or deactivate {% data variables.product.prodname_copilot %} for either in the IDE or by editing your `github-copilot.xml` file. If you make changes to language settings in your IDE, you can individually select and deselect the languages you want to activate or deactivate.
If you make changes to the language settings in your `github-copilot.xml` file, you can specify individual languages, or you can use a wildcard to activate or deactivate {% data variables.product.prodname_copilot %} for all languages. You can also specify exceptions, which will override the wild card setting for the specified languages. For example, you can deactivate {% data variables.product.prodname_copilot %} for all languages, except for Python and YAML. By default, when you install the {% data variables.product.prodname_copilot %} extension, {% data variables.product.prodname_copilot %} is activated for all languages.
### Configuring language settings in the IDE
{% data reusables.copilot.jetbrains-settings %}
{% data reusables.copilot.jetbrains-languages-and-frameworks %}
1. Under "Languages," select or deselect the checkboxes for the languages you want to activate or deactivate {% data variables.product.prodname_copilot %} for.
1. Click **Apply**, and then click **OK**.
1. Restart your JetBrains IDE for the changes to take effect.
### Editing your `github-copilot.xml` file
To configure language settings in the `github-copilot.xml` file, you must edit the `languageAllowList`. Every line you add to the `languageAllowList` must contain an entry key and a value. The entry key is the name of the language, or (`*`) for a wildcard. The value is either `true` or `false`. If the value is `true`, {% data variables.product.prodname_copilot %} is activated for the specified language. If the value is `false`, {% data variables.product.prodname_copilot %} is deactivated for the specified language.
The file is located in the following directory:
* **macOS:** `~/Library/Application Support/JetBrains//options/github-copilot.xml`
* **Windows:** `%APPDATA%\JetBrains\\options\github-copilot.xml`
* **Linux:** `~/.config/JetBrains//options/github-copilot.xml`
For example, if you are using IntelliJ IDEA 2021.1 on macOS, the file is located at `~/Library/Application Support/JetBrains/IdeaIC2021.1/options/github-copilot.xml`.
The `github-copilot.xml` file might not be generated until you make a change to your default language configuration in the IDE's settings. If you cannot locate the file, you should try modifying the default language settings in the IDE. For more information, see [Configuring language settings in the IDE](#configuring-language-settings-in-the-ide).
Alternatively, you can create the file manually and save it in the location for your operating system listed above. For more information, see [Example language configurations](#example-language-configurations).
1. Open the `github-copilot.xml` file in a text editor.
1. Between the `