Enter., Backspace and the navigation keys not responding in Visual Studio 2010 w/ Powertools/Resharper
Solution 1
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 Link 2 Link 3
Solution 2
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
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.
Solution 4
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).
Solution 5
I don't use ReSharper and this still happened. Pressing Control + Tab twice worked for me.
Related videos on Youtube
Dabblernl
MCTS in Windows Presentation Foundation since nov 18th 2009 Employed by Bridge Systems BV since may 2010 MCTS in Net 4.0 Data Access since sept 2012
Updated on July 08, 2022Comments
-
Dabblernl almost 2 years
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?
-
Adam Lear over 12 yearsQuestions about development tools are off-topic here and should go to Stack Overflow.
-
mcfea over 8 yearsalso see: stackoverflow.com/a/24529104/984463
-
BritishDeveloper almost 7 yearsstill happens in VS2017 :'( and I remember this in VS2010
-
Barış Akkurt over 4 yearsexactly. it still happens in VS 2017. disappointment.
-
-
Dan Mangiarelli about 12 yearsGood 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.
-
Tyler Durden over 11 yearsSelect another file tab and then return to the one you were trying to edit. This works for me.
-
Amicable almost 11 yearsInstalling ComponentArt seemed to cause the issue for me but ALT+Enter still resolved it.
-
kiprainey over 10 yearsThis happened to me with ReSharper 7.1.3. You can test this fairly easily by going to Tools > Options > ReSharper and clicking 'Suspend ReSharper.' The issue disappeared after an upgrade to ReSharper 8.
-
Hanna over 10 yearsI don't have ReSharper, but I do have Power Tools installed and I get this problem. I usually switch tabs and it works again.
-
Fazi over 10 yearsIn my experience it has nothing to do with the number of files openned, as this has happened with me with only one file open...
-
Fazi over 10 yearsI do not have ReSharper nor Power Tools installed, and I still get this error. But the fix is OK though...
-
cjbarth about 10 yearsI have a strong feeling this is the real solution, but I don't know why this would be an issue. See the comment by DigialJonah at connect.microsoft.com/VisualStudio/feedback/details/616775/…
-
Glenn about 9 yearsWish I could give this 10 votes. No other options worked for me.
-
Mikael Dúi Bolinder almost 9 yearsYeah, 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.
-
Kyra over 8 yearsTHANK YOU so much! This was happening while opening C# files from Unity. Just wanted to add for WINDOWS 10 you can get to this setting via: Control Panel > Clock, Language, and Region > Language > Advanced Settings (left side) > Under 'Switching input methods' click on 'Change language bar hot keys' and then you have the answer's window. :D Thank you.
-
Lemonseed about 8 yearsThis just happened to me using VS 2013 Express for Windows Desktop. Was solved by pressing Alt + Enter as suggested above, which switched focus to the Properties window. After clicking back to the code editor, I was able to use the Backspace key again.
-
MC9000 about 8 yearsAlt-Enter, Saving, etc. DID NOT WORK. Solution: Save and reboot the computer! This is Visual Studio 2015 (same bug!!!)
-
lukejkw almost 8 yearsYip, this was my issue too. Happened to be after adding a nuget package (VS 2015 Update 2)
-
Earth Engine about 7 yearsSame bug. No ReSharper or ANY extensions installed, VS 2010. Alt-Enter works.
-
GTHvidsten almost 5 yearsI don't use
VsVim
, but resetting the keyboard mapping to default helped me with a similar problem. -
Barış Akkurt over 4 yearsAlt+Enter did not work in my case but saving worked.
-
rocket porg almost 2 yearsThis fixed it for me, none of the other answers helped sorry... FYI I've just had this problem on VS 2022 after my PC crashed while I was in the middle of coding. Somehow the backspace, enter buttons were doing nothing in VS 2022 when I booted back up. Never had this problem ever before, so it was quite a shock! ;-)