Enter., Backspace and the navigation keys not responding in Visual Studio 2010 w/ Powertools/Resharper

Visual Studio-2010Resharper

Visual Studio-2010 Problem Overview


I have this very annoying problem that in Razor Views the Enter, Backspace and the navigation keys frequently do not respond. I have to restart VS to get it back to normal again. Am I missing something?

Visual Studio-2010 Solutions


Solution 1 - Visual Studio-2010

I had the same problem and solved it by saving the razor file (Ctrl + S). Once I did this I could use the Enter, Backspace and Navigation keys again.

I believe that Alt + Enter may also work.

I don't often get into this state and the above solution does not solve the underlying problem. I believe that it may have something to do with ReSharper but have not figured out if this assumption is true or not.

There are a number of pages that discuss this type of problem: [Link 1][1] [Link 2][2] [Link 3][3]

[1]: https://connect.microsoft.com/VisualStudio/feedback/details/616775/certain-keyboard-keys-stop-working-when-using-vs2010 "Link 1" [2]: https://connect.microsoft.com/VisualStudio/feedback/details/521892/backspace-and-arrow-key-issues "Link 2" [3]: http://connect.microsoft.com/VisualStudio/feedback/details/567055 "Link 3"

Solution 2 - Visual Studio-2010

Please try deleting the hidden '.suo' config from the solution folder.

I know this thread was created some time ago, but this may be an useful tip for someone.

Solution 3 - Visual Studio-2010

This was happening to me in VS 2010, despite not using R#. After digging through those links @Ryan Spears put in his post I have come across a permanent solution Source. (Note that @Maffelu's solution did work for me, but it can switch back if I accidentally hit Left Alt + Shift).

This is also weird because Left Alt + Shift doesn't seem to change it back, so you have to go to the source: a key binding buried in the Windows Control Panel:

Control Panel > Region and Language > Keyboards and Languages > Change Keyboards > Advanced Key Settings > Change Key Sequence > Select "Not Assigned" for both Switching Input Language and Switch Keyboard Layout.

enter image description here

Solution 4 - Visual Studio-2010

I've seen the same in Visual Studio 2013 and 2015 CTP.

None of the above solutions worked, but restarting Visual Studio did (after displaying the below warning).

enter image description here

Solution 5 - Visual Studio-2010

I don't use ReSharper and this still happened. Pressing Control + Tab twice worked for me.

Solution 6 - Visual Studio-2010

Something that worked for me:

Try Tools > Import and Export Settings... then only select Keyboard.

Search for Bkspce and see if it is being used for anything.

I accidentally had something Global bound to Bkspce, Bkspce which caused a very strange problem.

Solution 7 - Visual Studio-2010

This happened to me when I installed ReSharper to a Visual Studio that has VsVim installed, and I fixed it by doing the following:

  1. Uninstall VsVim
  2. Reset the keyboard mapping to default in Tools -> Options -> Environment -> Keyboard
  3. Set the ReSharper keyboard shortcut mapping in ReSharper options. (I use ReSharper 2.x or IntelliJ IDEA), and make sure Enter, Backspace, etc work.
  4. Install VsVim and configure its keyboard options.

Solution 8 - Visual Studio-2010

This issue occurred for me (in VS 2019) after installing a visual studio extension. So try removing any recently installed extensions.

The extension I used was File Nesting.

Note: System reboot didn't fix the problem.

Solution 9 - Visual Studio-2010

Resharper could be the reason.None of the solutions above worked for me. First check if Resharper is the problem.

Simply navigate to Tools > Options > ReSharper > General > Click suspend Resharper.

After taking steps above, if it works now as expected,then your problem could be caused by cache.

Clear cache following by the navigation below.

Resharper > Options > General > Clear caches or erase them manually

Or problem can be caused by not matching script tags in the cshtml.(Weird but it was the case that causes my problem)

Solution 10 - Visual Studio-2010

If you have too many files open in Visual Studio 2010 then Enter or Backspace key will stop working intermittently. Try closing some files and Enter and Backspace key will start working.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDabblernlView Question on Stackoverflow
Solution 1 - Visual Studio-2010Ryan SpearsView Answer on Stackoverflow
Solution 2 - Visual Studio-2010KrishnaView Answer on Stackoverflow
Solution 3 - Visual Studio-2010Travis HeeterView Answer on Stackoverflow
Solution 4 - Visual Studio-2010TaranView Answer on Stackoverflow
Solution 5 - Visual Studio-2010MaffeluView Answer on Stackoverflow
Solution 6 - Visual Studio-2010vaughanView Answer on Stackoverflow
Solution 7 - Visual Studio-2010ohwView Answer on Stackoverflow
Solution 8 - Visual Studio-2010Mayur AgarwalView Answer on Stackoverflow
Solution 9 - Visual Studio-2010erhan355View Answer on Stackoverflow
Solution 10 - Visual Studio-2010zubairshamsView Answer on Stackoverflow