Search code examples
visual-studioeditorvisual-studio-2022github-copilot

VS2022 with GitHub Copilot adding random spaces while typing


Not sure if this is a Visual Studio 2022 bug or a GitHub Copilot bug, but frequently when I'm typing, it will just add a ton of spaces in the middle of the text wherever the cursor happens to be. It's gotten to the point where it's really affecting my productivity. For an example, see here:

enter image description here

I was just typing the word "Console" and it added those spaces in the middle on its own.

Any ideas on which settings I might tweak in VS to remove this annoying behaviour?

Thanks in advance.


Solution

  • I have not experienced the same thing as you, but I would check the settings that you see with the suggested snippet. My guess is you are having conflicts between Visual Studio IntelliCode and GitHub Copilot.

    You should try unchecking "Show whole line completions" as a start.

    enter image description here