Skip to content

Commit 90adf8a

Browse files
committed
matt's changes
1 parent 785fde6 commit 90adf8a

7 files changed

+167
-61
lines changed
74.9 KB
Loading
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
title: Configuring GitHub Copilot in a JetBrains IDE
3+
intro: 'You can enable, configure, and disable {% data variables.product.prodname_copilot %} in a JetBrains IDE.'
4+
product: '{% data reusables.gated-features.copilot %}'
5+
topics:
6+
- Copilot
7+
versions:
8+
feature: 'copilot'
9+
shortTitle: JetBrains
10+
---
11+
12+
## About {% data variables.product.prodname_copilot %} in JetBrains IDEs
13+
14+
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 %}.
15+
16+
## Prerequisites
17+
18+
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 "[Getting started with {% data variables.product.prodname_copilot %} in a JetBrains IDE](/copilot/getting-started-with-github-copilot/getting-started-with-github-copilot-in-a-jetbrains-ide)."
19+
20+
## Keyboard shortcuts for {% data variables.product.prodname_copilot %}
21+
22+
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.
23+
24+
{% mac %}
25+
26+
| Action | Shortcut |
27+
|:---|:---|
28+
|Accept an inline suggestion|<kbd>Tab</kbd>|
29+
|Dismiss an inline suggestion|<kbd>Esc</kbd>|
30+
|Show next inline suggestion|<kbd>Option (⌥) or Alt</kbd>+<kbd>]</kbd>|
31+
|Show previous inline suggestion|<kbd>Option (⌥) or Alt</kbd>+<kbd>[</kbd>|
32+
|Trigger inline suggestion|<kbd>Option (⌥)</kbd>+<kbd>\</kbd>|
33+
|Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane)|<kbd>Option (⌥) or Alt</kbd>+<kbd>Return</kbd> |
34+
35+
{% endmac %}
36+
37+
{% windows %}
38+
39+
| Action | Shortcut |
40+
|:---|:---|
41+
|Accept an inline suggestion|<kbd>Tab</kbd>|
42+
|Dismiss an inline suggestion|<kbd>Esc</kbd>|
43+
|Show next inline suggestion|<kbd>Alt</kbd>+<kbd>]</kbd>|
44+
|Show previous inline suggestion|<kbd>Alt</kbd>+<kbd>[</kbd>|
45+
|Trigger inline suggestion|<kbd>Alt</kbd>+<kbd>\</kbd>|
46+
|Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane)|<kbd>Alt</kbd>+<kbd>Enter</kbd> |
47+
48+
{% endwindows %}
49+
50+
{% linux %}
51+
52+
| Action | Shortcut |
53+
|:---|:---|
54+
|Accept an inline suggestion|<kbd>Tab</kbd>|
55+
|Dismiss an inline suggestion|<kbd>Esc</kbd>|
56+
|Show next inline suggestion|<kbd>Alt</kbd>+<kbd>]</kbd>|
57+
|Show previous inline suggestion|<kbd>Alt</kbd>+<kbd>[</kbd>|
58+
|Trigger inline suggestion|<kbd>Alt</kbd>+<kbd>\</kbd>|
59+
|Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane)|<kbd>Alt</kbd>+<kbd>Enter</kbd> |
60+
61+
{% endlinux %}
62+
63+
## Enabling or disabling {% data variables.product.prodname_copilot %}
64+
65+
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.
66+
67+
1. To enable or disable {% data variables.product.prodname_copilot %}, click the status icon in the bottom panel of the JetBrains window.
68+
![Status icon in JetBrains](/assets/images/help/copilot/status-icon-jetbrains.png)
69+
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.
70+
![Disable {% data variables.product.prodname_copilot %} globally or for the current language](/assets/images/help/copilot/disable-copilot-global-or-langugage-jetbrains.png)
71+
72+
## Configuring advanced settings for {% data variables.product.prodname_copilot %}
73+
74+
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 %}.
75+
76+
1. In your JetBrains IDE, click the **File** menu, then click **Settings**.
77+
1. Under **Languages & Frameworks**, click **{% data variables.product.prodname_copilot %}**.
78+
1. Edit the settings according to your personal preferences.
79+
- To adjust the behaviour and appearance of code suggestions, and whether to automatically check for updates, select or deselect the corresponding checkboxes.
80+
- 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.
81+
- Under "Disabled languages", use the checkboxes to select or deselect the languages you want to disable {% data variables.product.prodname_copilot %} for.
82+
83+
{% data reusables.copilot.dotcom-settings %}

content/copilot/configuring-github-copilot/configuring-github-copilot-in-jetbrains.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

content/copilot/configuring-github-copilot/configuring-github-copilot-in-neovim.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Configuring GitHub Copilot in NeoVim
2+
title: Configuring GitHub Copilot in Neovim
33
intro: 'You can enable, configure, and disable {% data variables.product.prodname_copilot %} in Neovim.'
44
product: '{% data reusables.gated-features.copilot %}'
55
versions:

content/copilot/configuring-github-copilot/configuring-github-copilot-in-visual-studio-code.md

Lines changed: 71 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,55 +9,112 @@ topics:
99
- Copilot
1010
---
1111

12+
## About {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}
13+
14+
If you use {% data variables.product.prodname_vscode %}, {% 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 {% data variables.product.prodname_vscode %} or on {% data variables.product.prodname_dotcom_the_website %}.
15+
16+
## Prerequisites
17+
18+
To configure {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}, you must install the {% data variables.product.prodname_copilot %} plugin. For more information, see "[Getting started with {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}](/copilot/getting-started-with-github-copilot/getting-started-with-github-copilot-in-visual-stuido-code)."
19+
1220
## Keyboard shortcuts for {% data variables.product.prodname_copilot %}
1321

1422
You can use the default keyboard shortcuts in {% data variables.product.prodname_vscode %} when using {% data variables.product.prodname_copilot %}. Alternatively, you can rebind the shortcuts in the Keyboard Shortcuts editor using your preferred keyboard shortcuts for each specific command. You can search for each keyboard shortcut by command name in the Keyboard Shortcuts editor.
1523

24+
{% mac %}
25+
26+
| Action | Shortcut | Command name |
27+
|:---|:---|:---|
28+
|Accept an inline suggestion|<kbd>Tab</kbd>|editor.action.inlineSuggest.commit|
29+
|Dismiss an inline suggestion|<kbd>Esc</kbd>|editor.action.inlineSuggest.hide|
30+
|Show next inline suggestion| <kbd>Option (⌥)</kbd>+<kbd>]</kbd><br> |editor.action.inlineSuggest.showNext|
31+
|Show previous inline suggestion| <kbd>Option (⌥)</kbd>+<kbd>[</kbd><br> |editor.action.inlineSuggest.showPrevious|
32+
|Trigger inline suggestion| <kbd>Option (⌥)</kbd>+<kbd>\</kbd><br> |editor.action.inlineSuggest.trigger|
33+
|Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane)|<kbd>Ctrl</kbd>+<kbd>Return</kbd>|github.copilot.generate|
34+
|Toggle {% data variables.product.prodname_copilot %} on/off|_No default shortcut_|github.copilot.toggleCopilot|
35+
36+
{% endmac %}
37+
38+
{% windows %}
39+
1640
| Action | Shortcut | Command name |
1741
|:---|:---|:---|
1842
|Accept an inline suggestion|<kbd>Tab</kbd>|editor.action.inlineSuggest.commit|
1943
|Dismiss an inline suggestion|<kbd>Esc</kbd>|editor.action.inlineSuggest.hide|
20-
|Show next inline suggestion|On macOS: <kbd>Option (⌥)</kbd>+<kbd>]</kbd><br> On Windows or Linux: <kbd>Alt</kbd>+<kbd>]</kbd> |editor.action.inlineSuggest.showNext|
21-
|Show previous inline suggestion|On macOS: <kbd>Option (⌥)</kbd>+<kbd>[</kbd><br> On Windows or Linux: <kbd>Alt</kbd>+<kbd>[</kbd>|editor.action.inlineSuggest.showPrevious|
22-
|Trigger inline suggestion|On macOS: <kbd>Option (⌥)</kbd>+<kbd>\</kbd><br> On Windows or Linux: <kbd>Alt</kbd>+<kbd>\</kbd>|editor.action.inlineSuggest.trigger|
44+
|Show next inline suggestion|<kbd>Alt</kbd>+<kbd>]</kbd> |editor.action.inlineSuggest.showNext|
45+
|Show previous inline suggestion|<kbd>Alt</kbd>+<kbd>[</kbd>|editor.action.inlineSuggest.showPrevious|
46+
|Trigger inline suggestion|<kbd>Alt</kbd>+<kbd>\</kbd>|editor.action.inlineSuggest.trigger|
2347
|Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane)|<kbd>Ctrl</kbd>+<kbd>Enter</kbd>|github.copilot.generate|
2448
|Toggle {% data variables.product.prodname_copilot %} on/off|_No default shortcut_|github.copilot.toggleCopilot|
2549

50+
{% endwindows %}
51+
52+
53+
{% linux %}
54+
55+
| Action | Shortcut | Command name |
56+
|:---|:---|:---|
57+
|Accept an inline suggestion|<kbd>Tab</kbd>|editor.action.inlineSuggest.commit|
58+
|Dismiss an inline suggestion|<kbd>Esc</kbd>|editor.action.inlineSuggest.hide|
59+
|Show next inline suggestion|<kbd>Alt</kbd>+<kbd>]</kbd> |editor.action.inlineSuggest.showNext|
60+
|Show previous inline suggestion|<kbd>Alt</kbd>+<kbd>[</kbd>|editor.action.inlineSuggest.showPrevious|
61+
|Trigger inline suggestion|<kbd>Alt</kbd>+<kbd>\</kbd>|editor.action.inlineSuggest.trigger|
62+
|Open {% data variables.product.prodname_copilot %} (additional suggestions in separate pane)|<kbd>Ctrl</kbd>+<kbd>Enter</kbd>|github.copilot.generate|
63+
|Toggle {% data variables.product.prodname_copilot %} on/off|_No default shortcut_|github.copilot.toggleCopilot|
64+
65+
{% endlinux %}
66+
2667
## Rebinding keyboard shortcuts
2768

69+
If you don't want to use the default keyboard shortcuts in {% data variables.product.prodname_vscode %} when using {% data variables.product.prodname_copilot %}, you can rebind the shortcuts in the Keyboard Shortcuts editor using your preferred keyboard shortcuts for each specific command.
70+
2871
1. Click the **File** menu, click **Preferences**, then click **Keyboard Shortcuts**.
29-
![Visual Studio Code keyboard shortcuts](/assets/images/help/copilot/vsc-keyboard-shortcuts.png)
72+
![Screenshot of Visual Studio Code keyboard shortcuts](/assets/images/help/copilot/vsc-keyboard-shortcuts.png)
3073
1. In the "Keyboard Shortcuts" editor, search for the command name of the keyboard shortcut you want to change.
31-
![Keyboard shortcut search bar](/assets/images/help/copilot/vsc-shortcut-search-bar.png)
74+
![Screenshot of Keyboard shortcut search bar](/assets/images/help/copilot/vsc-shortcut-search-bar.png)
3275
1. Next to the command you want to change, click the pencil icon.
33-
![Keyboard shortcut editor](/assets/images/help/copilot/vsc-edit-shortcuts.png)
76+
![Screenshot of Keyboard shortcut editor](/assets/images/help/copilot/vsc-edit-shortcuts.png)
3477
1. Type the keystrokes you want to use for the command, then press <kbd>Enter</kbd>/<kbd>Return</kbd>.
35-
![Edit keyboard shortcut](/assets/images/help/copilot/vsc-edit-shortcuts-textbox.png)
78+
![Screenshot of Edit keyboard shortcut textbox](/assets/images/help/copilot/vsc-edit-shortcuts-textbox.png)
3679

3780
## Enabling or disabling {% data variables.product.prodname_copilot %}
3881

3982
You can enable or disable {% data variables.product.prodname_copilot %} from within {% data variables.product.prodname_vscode %}. The {% data variables.product.prodname_copilot %} status icon in the bottom panel of the {% data variables.product.prodname_vscode %} window indicates whether {% data variables.product.prodname_copilot %} is enabled or disabled. When enabled, the background color of the icon will match the color of the status bar. When disabled, the background color of the icon will contrast the color of the status bar.
4083

4184
1. To enable or disable {% data variables.product.prodname_copilot %}, click the status icon in the bottom panel of the {% data variables.product.prodname_vscode %} window.
42-
![Status icon in {% data variables.product.prodname_vscode %}](/assets/images/help/copilot/status-icon-visual-studio-code.png)
85+
![Screenshot of status icon in {% data variables.product.prodname_vscode %}](/assets/images/help/copilot/status-icon-visual-studio-code.png)
4386
2. If you are disabling {% data variables.product.prodname_copilot %}, Visual Studio Code will ask whether you want to disable it globally, or only for the language of the file you are currently editing. To disable globally, click **Disable globally**. Alternatively, click the language-specific button to disable {% data variables.product.prodname_copilot %} for the specified language.
44-
![Disable {% data variables.product.prodname_copilot %} globally or for the current language](/assets/images/help/copilot/disable-copilot-global-or-langugage.png)
87+
![Screenshot of disable {% data variables.product.prodname_copilot %} globally or for the current language option](/assets/images/help/copilot/disable-copilot-global-or-langugage.png)
4588

4689
## Enabling or disabling inline suggestions
4790

48-
You can choose to enable or disable inline suggestions in Visual Studio Code.
91+
You can choose to enable or disable inline suggestions for {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vscode %}.
4992

5093
1. In the **File** menu, navigate to **Preferences** and click **Settings**.
51-
![Visual Studio Code settings](/assets/images/help/copilot/vsc-settings.png)
94+
![Screenshot of {% data variables.product.prodname_vscode %} settings](/assets/images/help/copilot/vsc-settings.png)
5295
1. In the left-side panel of the settings tab, click **Extensions** and then select **Copilot**.
53-
1. Under "Inline Suggest:Enabled", select or deselect to enable or disable inline suggestions.
96+
1. Under "Inline Suggest:Enable", select or deselect the checkbox to enable or disable inline suggestions.
5497

5598
## Enabling or disabling {% data variables.product.prodname_copilot %} for specific languages
5699

57100
You can specify which languages you want to enable or disable {% data variables.product.prodname_copilot %} for.
58101

59-
1. Display the **Copilot** section in the **Extensions** tab of the Visual Studio Code settings page. For more information, see "[Enabling and disabling inline suggestions](#enabling-and-disabling-inline-suggestions)."
102+
1. From the {% data variables.product.prodname_vscode %}, click the **Extensions** tab, then navigate to the **Copilot** section. For more information, see "[Enabling and disabling inline suggestions](#enabling-and-disabling-inline-suggestions)."
60103
1. Under "Enable or disable Copilot for specified languages", click **Edit in settings.json**.
61-
1. In the settings.json file, add or remove the languages for which you want to enable or disable {% data variables.product.prodname_copilot %}. For example, to enable Python in {% data variables.product.prodname_copilot %}, add `"python": true` to the JSON list.
104+
1. In the _settings.json_ file, add or remove the languages you want to enable or disable {% data variables.product.prodname_copilot %} for. For example, to enable Python in {% data variables.product.prodname_copilot %}, add `"python": true` to the list, ensuring there is a trailing comma after all but the last list item.
105+
106+
```json
107+
{
108+
"editor.inlineSuggest.enabled": true,
109+
"github.copilot.enable": {
110+
"*": true,
111+
"yaml": false,
112+
"plaintext": false,
113+
"markdown": true,
114+
"javascript": true,
115+
"python": true
116+
}
117+
}
118+
```
62119

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

0 commit comments

Comments
 (0)