41 lines
3.1 KiB
Markdown
41 lines
3.1 KiB
Markdown
---
|
|
title: Configuring GitHub Copilot in JetBrains
|
|
intro: 'You can enable, configure, and disable {% data variables.product.prodname_copilot %} in JetBrains.'
|
|
product: '{% data reusables.gated-features.copilot %}'
|
|
topics:
|
|
- Copilot
|
|
versions:
|
|
feature: 'copilot'
|
|
shortTitle: JetBrains
|
|
---
|
|
|
|
## Keyboard shortcuts for {% data variables.product.prodname_copilot %}
|
|
|
|
You can use the default keyboard shortcuts in JetBrains 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 JetBrains, see the [JetBrains](https://www.jetbrains.com/help/idea/mastering-keyboard-shortcuts.html#choose-keymap) documentation.
|
|
|
|
| Action | Shortcut |
|
|
|:---|:---:|
|
|
|Accept an inline suggestion|<kbd>Tab</kbd>|
|
|
|Dimiss an inline suggestion|<kbd>Esc</kbd>|
|
|
|Show next inline suggestion|On macOS: <kbd>Option (⌥) or Alt</kbd>+<kbd>]</kbd><br> On Windows: <kbd>Alt</kbd>+<kbd>]</kbd>|
|
|
|Show previous inline suggestion|On macOS: <kbd>Option (⌥) or Alt</kbd>+<kbd>[</kbd><br> On Windows: <kbd>Alt</kbd>+<kbd>[</kbd>|
|
|
|Trigger inline suggestion|On macOS: <kbd>Option (⌥)</kbd>+<kbd>\</kbd><br> On Windows: <kbd>Alt</kbd>+<kbd>\</kbd>|
|
|
|Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane)|On macOS: <kbd>Option (⌥) or Alt</kbd>+<kbd>Enter</kbd><br> On Windows: <kbd>Alt</kbd>+<kbd>Enter</kbd> |
|
|
|
|
## Enabling and disabling {% data variables.product.prodname_copilot %}
|
|
|
|
You can enable or disable {% data variables.product.prodname_copilot %} from within JetBrains. 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.
|
|

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

|
|
|
|
## Enabling and disabling {% data variables.product.prodname_copilot %} for specific languages
|
|
|
|
You can specify which languages you want to enable or disable {% data variables.product.prodname_copilot %} for within JetBrains.
|
|
|
|
1. In JetBrains, under the **File** menu, click **Settings**.
|
|
1. Under **Languages & Frameworks**, click **{% data variables.product.prodname_copilot %}**.
|
|
1. Under "Disabled languages", select the languages you want to disable {% data variables.product.prodname_copilot %} for.
|