views:

1408

answers:

6

Something (who knows, possibly even me, though certainly not intentionally) has changed the keyboard mapping in Visual Studio 2008, and I cannot figure out how to get it back to the default.

The symptom that I see as the problem is that when I type the name of a class which is not in a namespace listed in the using statements at the top of the file, the shortcut to add that namespace to the file (expand tooltip), which is, by default, Ctrl +. (period) has been changed to Shift + Alt + F10. There are probably other key settings changed, but this is one that is really annoying me at the moment.

Ways I have already tried to fix the problem which have not worked

  • Tools, Options, Environment, Keyboard, press Reset button. (The additional mapping scheme is set to Default, but I have also tried VC #2005; neither fixed the problem.)
  • Tools, Import and Export Settings, re-import C# developer settings
  • devenv /reset
  • Using "repair" from the installer.

I know that I could probably fix just this one key binding by customizing it, but I don't want to do that. I want to reset all of the key binding spec to their default settings.

+1  A: 

Do you have a "working" visual studio around? You can export the setting (keyboard only settings) from that machine and import it into your machine.

Shay Erlichmen
A: 

Did you do something like install re-charper?

If you did, you can fix this by going through your options for Visual Studio and/or the options for Re-charper (Can't remember now) and simply setting them up to continue using Visual Studio Layouts as opposed to that of the Add-in.

Gineer
No, I've never installed Resharper, or any other third-party add-in. The only things I've added to Visual Studio have been Microsoft releases such as ASP.NET MVC.
Craig Stuntz
+1  A: 

Hi, I came across the same problem, (Tools-Options->Keyboard) View.ShowSmartTag is the field where you can re-assign the shortcut manually to CTRL + .

I know it's a few months post date, but that should do the trick

Joris
I think you're right, but it only fixes the one key. +1 for effort, though.
Craig Stuntz
A: 

In the default Visual Studio 2008 C# key bindings, both CTRL + . and Shift + Alt + F10 map to Show Smart Tag.

You can download Visual C# 2008 Keybinding Reference Poster here.

Alfred Myers
+2  A: 

I figured out the problem: Ctrl + . was remapped by FSI when I installed F#. That's why resetting the key mappings didn't fix the issue: I still had F#. And the answer to which other mappings I've lost is, "Those mapped by FSI" (type FSI in keyboard mappings; there are only two).

Craig Stuntz
A: 

something that happen to me ... make sure that "F lock" key on the keyboard (if you one of this) is on.. i didn't sew that i turn it off, and nothing work normal. (F5 - open the open dialog, F10 switch to split mode!)