Dan Cook
Dan Cook

Reputation: 2072

Visual Studio 2019 keyboard stops responding or continously repeats characters

Using Visual Studio 2019 Enterprise (v16) (with Resharper and StyleCop extension for Resharper installed) regularly has the following issues with the keyboard (many times per day).

  1. Keys entered on the keyboard are not input
  2. Keys entered on the keyboard get input in the wrong order (even typing slowly), like this:

enter image description here

  1. Keys entered (including CTRL+V) get repeated continuously, like this:

enter image description here

The only way to temporarily resolve it is to close visual studio and re-open where it will work fine for 5-60 minutes before the problem reoccurs.

Steps taken:

  1. Replace the cheap external keyboard with a more expensive one (Logitech G213)
  2. Unplug all USB devices except for mouse and keyboard
  3. Reinstall Visual Studio

None of these steps have resolved the issue. I have not yet tried uninstalling Resharper/Stylecop as I do require these for my every day work.

Has anyone seen/solved this problem before?

Upvotes: 5

Views: 3382

Answers (2)

Florian Winter
Florian Winter

Reputation: 5279

This sometimes happens when an extension (typically a code analyzer) crashes with an exception (indicated by a status bar on top of the code window) while typing.

A workaround seems to be to open a pull-down menu, such as the File menu, and close it again.

I would call the resulting keyboard behavior a bug in Visual Studio, but the original cause is also always a bug in the extension you are using. You may therefore want to report it to both Microsoft and the developer of the extension. Note that this is my personal opinion. I do not work for Microsoft.

Upvotes: 5

AntonyW
AntonyW

Reputation: 2414

See the link from the ReSharper forums. This shows a workaround and a response. I also saw the empty document issue reported there too.

I'm going to give it a try or rollback if necessary.

Upvotes: 7

Related Questions