About GitHub Copilot in JetBrains IDEs
If you use a Jetbrains IDE, GitHub Copilot can autocomplete code as you type. After installation, you can enable or disable GitHub Copilot, and you can configure advanced settings within your IDE or on GitHub.com.
Prerequisites
To configure GitHub Copilot in a JetBrains IDE, you must install the GitHub Copilot plugin. For more information, see "Getting started with GitHub Copilot in a JetBrains IDE."
Keyboard shortcuts for GitHub Copilot
You can use the default keyboard shortcuts for inline suggestions in your JetBrains IDE when using GitHub 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.
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 GitHub Copilot (additional suggestions in separate pane) | Option (⌥) or Alt+Return |
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 GitHub Copilot (additional suggestions in separate pane) | Alt+Enter |
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 GitHub Copilot (additional suggestions in separate pane) | Alt+Enter |
Enabling or disabling GitHub Copilot
You can enable or disable GitHub Copilot from within your JetBrains IDE. The GitHub Copilot status icon in the bottom panel of the JetBrains window indicates whether GitHub Copilot is enabled or disabled. When enabled, the icon is highlighted. When disabled, the icon is grayed out.
- To enable or disable GitHub Copilot, click the status icon in the bottom panel of the JetBrains window.
- If you are disabling GitHub 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 GitHub Copilot for the specified language.
Configuring advanced settings for GitHub Copilot
You can manage advanced settings for GitHub Copilot in your JetBrains IDE, such as how your IDE displays code completions, and which languages you want to enable or disable for GitHub Copilot.
- In your JetBrains IDE, click the File menu, then click Settings.
- Under Languages & Frameworks, click GitHub Copilot.
- Edit the settings according to your personal preferences.
- To adjust the behaviour 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 GitHub Copilot for.
Configuring GitHub Copilot settings on GitHub.com
Once you have an active GitHub Copilot trial or subscription, you can adjust GitHub Copilot settings for your personal account on GitHub. The settings apply anywhere that you use GitHub Copilot. You can configure the suggestions that GitHub Copilot offers and how GitHub uses your telemetry data.
Enabling or disabling duplication detection
-
In the upper-right corner of any page, click your profile photo, then click Settings.
-
In the left sidebar, click Copilot.
-
Under Suggestions matching public code, select the dropdown menu and click Allow to allow suggestions matching public code, or Block to block suggestions matching public code.
-
To confirm your new settings, click Save.
Enabling and disabling telemetry
-
In the upper-right corner of any page, click your profile photo, then click Settings.
-
In the left sidebar, click Copilot.
-
To allow or prevent GitHub using your telemetry data, next to Allow GitHub to use my telemetry for product improvements, select or deselect the checkbox.
-
To confirm your new settings, click Save.