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?

7 Answers
7

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.

Good catch with ReSharper. I've been getting this on and off until this morning where one particular view stopped working, and rebooting didn't fix it. Suspend R#, it works. Resume R#, it breaks again. None of the other workarounds helped.
–
Dan MangiarelliApr 9 '12 at 14:38

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:

Yeah, I experienced this strange thing after creating a Xamarin solution. I deleted the suo while restarting just to be sure to get rid of it. Strangest bug thing ever.
–
Mikael Dúi BolinderJun 6 at 17:55