4.1 KiB
title, intro, product, versions, shortTitle, topics
| title | intro | product | versions | shortTitle | topics | |||
|---|---|---|---|---|---|---|---|---|
| Configuring GitHub Copilot in Visual Studio | You can enable, configure, and disable {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vs %}. | {% data reusables.gated-features.copilot %} |
|
Visual Studio |
|
About {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vs %}
If you use {% data variables.product.prodname_vs %}, {% 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_vs %} or on {% data variables.product.prodname_dotcom_the_website %}.
Prerequisites
To configure {% data variables.product.prodname_copilot %} in {% data variables.product.prodname_vs %}, 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 in {% data variables.product.prodname_vs %} when using {% data variables.product.prodname_copilot %}. Alternatively, you can rebind the shortcuts in the Tools settings for {% data variables.product.prodname_vs %} using your preferred keyboard shortcuts for each specific command. You can search for each keyboard shortcut by its command name in the Keyboard Shortcuts editor.
| Action | Shortcut | Command name |
|---|---|---|
| Show next inline suggestion | Alt+. | Tools.Nextsuggestion |
| Show previous inline suggestion | Alt+, | Tools.Previoussuggestion |
| Trigger inline suggestion | Ctrl+Alt+</kbd> | Edit.Copilot.TriggerInlineSuggestion |
Rebinding keyboard shortcuts
If you don't want to use the default keyboard shortcuts in {% data variables.product.prodname_vs %} when using {% data variables.product.prodname_copilot %}, you can rebind the shortcuts in the Keyboard editor using your preferred keyboard shortcuts for each specific command.
-
In the {% data variables.product.prodname_vs %} toolbar, under Tools, click Options.
-
In the "Options" dialog, under Environment, click Keyboard.
-
Under "Show commands containing:", search for the command you want to rebind.
-
Under "Press shortcut keys," type the shortcut you want to assign to the command, then click Assign.
{% data reusables.copilot.enabling-or-disabling-vs %}
Configuring ReSharper for {% data variables.product.prodname_copilot %}
If you use ReSharper, {% data variables.product.prodname_copilot %} may work best when you configure ReSharper to use {% data variables.product.prodname_copilot %}'s native IntelliSense. For more information about ReSharper, see the ReSharper documentation
- In the {% data variables.product.prodname_vs %} toolbar, under Tools, click Options.

- In the "Options" dialog, under Environment, click IntelliSense and then click General.

- Under "General" select Visual Studio and then click Save.
{% data reusables.copilot.dotcom-settings %}


