Copilot suggestion not triggered with TAB

Reuben Kruger 11 Reputation points
2023-05-18T08:08:58.8633333+00:00

Im on the latest Visual studio 20022 and copilot installs.

When trying to accept a copilot suggestion with tab it triggers intellisense instead...

example:

User's image

When I hit tab it selects "Connectionstrings" and not the copilot autocomplete..

Copilot is on 1.82.1.0

Any idea how to fix?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,221 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,411 Reputation points Microsoft Vendor
    2023-05-18T13:52:14.0366667+00:00

    Hello @Anonymous ,

    Welcome to Microsoft Q&A forum.

    It seems that the conflicts still exist. Here are some similar threads(for VS, for VS Code, or for other extensions) which discussed about this issue/similar issue => Tab completion conflicts [GitHub Copilot], Copilot with VS 2022 is often very disruptive by cancelling out regular intellisense, Regular IDE autocomplete and Github CoPilot must work together.

    You may consider disabling IntelliSense to make the Tab "select" Copilot suggestions. I recommend submitting a ticket on Github Community for further help.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Barnes Daniel 1 Reputation point
    2024-11-06T04:10:23.5666667+00:00

    I believe this is now fixed, but for anyone having this issue, You can switch GitHub CoPilot to complete with the right arrow key so it doesn't compete for the tab key:

    Under Tools > Options > IntelliCode > Advanced tick Apply whole line completions on right arrow checkbox.

    0 comments No comments

  3. Barnes Daniel 1 Reputation point
    2024-11-06T04:12:07.0766667+00:00

    I believe this has been fixed, but if you still have the issue, you can configure GitHub CoPilot to use the right arrow for complete, so it doesn't compete for the TAB key.

    In Visual Studio 2022:
    Under Tools > Options > IntelliCode > Advanced, tick Apply whole line completions on right arrow checkbox.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.