9

The regular code completion in Visual Studio somehow turned into Copilot code completion:

Copilot code completion

It does not work though, replaces contents of the whole document with single-line proposed completion.

enter image description here

How can I return to the regular refactorings?

These are my Copilot options:

Github Copilot options

Bonus question: How to turn off Github Copilot completely?

2 Answers 2

11

I'm not sure about the autocomplete options as sometimes they all seem to fight (especially when other linting tools like Resharper are involved). However, to get rid of it completely you can uninstall CoPilot for VS2022 if you go to :

Tools > Get Tools and Features > Individual components

Untick GitHub Copilot:

enter image description here

It should remove it. Hope this helps

Sign up to request clarification or add additional context in comments.

2 Comments

This seems to be the only thing that helped. Sucks they're forcing these annoying features upon the users like that.
This solution just worked fine! Thank you
0

To temporarily disable Github Compilot you can also use the "Github Copilot" menu in the top right-hand corner of the VS window.

enter image description here

There's a context menu there that allows enabling/disabling of certain features when you're logged in. Logging out should also disable it, but I haven't found out how to do that last time, so I'm not going to try. (as yes, most of the time, the suggestions are annoying, at least for me as a seasoned programmer)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.