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

46,764

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.

enter image description here

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).

enter image description here

Solution 5

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

Share:
46,764

Related videos on Youtube

Dabblernl
Author by

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, 2022

Comments

  • Dabblernl
    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
      Adam Lear over 12 years
      Questions about development tools are off-topic here and should go to Stack Overflow.
    • mcfea
      mcfea over 8 years
    • BritishDeveloper
      BritishDeveloper almost 7 years
      still happens in VS2017 :'( and I remember this in VS2010
    • Barış Akkurt
      Barış Akkurt over 4 years
      exactly. it still happens in VS 2017. disappointment.
  • Dan Mangiarelli
    Dan Mangiarelli about 12 years
    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.
  • Tyler Durden
    Tyler Durden over 11 years
    Select another file tab and then return to the one you were trying to edit. This works for me.
  • Amicable
    Amicable almost 11 years
    Installing ComponentArt seemed to cause the issue for me but ALT+Enter still resolved it.
  • kiprainey
    kiprainey over 10 years
    This 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
    Hanna over 10 years
    I 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
    Fazi over 10 years
    In 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
    Fazi over 10 years
    I do not have ReSharper nor Power Tools installed, and I still get this error. But the fix is OK though...
  • cjbarth
    cjbarth about 10 years
    I 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
    Glenn about 9 years
    Wish I could give this 10 votes. No other options worked for me.
  • Mikael Dúi Bolinder
    Mikael Dúi Bolinder almost 9 years
    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.
  • Kyra
    Kyra over 8 years
    THANK 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
    Lemonseed about 8 years
    This 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
    MC9000 about 8 years
    Alt-Enter, Saving, etc. DID NOT WORK. Solution: Save and reboot the computer! This is Visual Studio 2015 (same bug!!!)
  • lukejkw
    lukejkw almost 8 years
    Yip, this was my issue too. Happened to be after adding a nuget package (VS 2015 Update 2)
  • Earth Engine
    Earth Engine about 7 years
    Same bug. No ReSharper or ANY extensions installed, VS 2010. Alt-Enter works.
  • GTHvidsten
    GTHvidsten almost 5 years
    I don't use VsVim, but resetting the keyboard mapping to default helped me with a similar problem.
  • Barış Akkurt
    Barış Akkurt over 4 years
    Alt+Enter did not work in my case but saving worked.
  • rocket porg
    rocket porg almost 2 years
    This 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! ;-)