Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate keystrokes on cshtml editor

I'm having a strange problem in Visual Studio 2022, and would like to know if someone else faced it.

It only happens when editting .cshtml files, on Asp.net MVC projects, ocasionally when I press a key on the keyboard, the editor insert that same letter 2, sometimes 4 times. I need to restart my machine to solve it, but it will eventually return. The image bellow ilustrate the problem, I've typed <div> and got this result:

enter image description here

It doesn't happen on .cs, .js files, or in any other editor in my machine.

like image 703
Marlon Avatar asked Aug 04 '26 22:08

Marlon


1 Answers

You most likely have GitHub Copilot activated. If so, try deactivating it.

I was going nuts with this too, until I found out that it was GitHub Copilot that was doing it once in a while. I have not found a solution to it, other than deactivating Copilot. You can see a thread on it here: https://github.com/github-community/community/discussions/14206

Boa sorte ;-)

like image 180
Anders Avatar answered Aug 07 '26 11:08

Anders