How do I fix this Visual Studio keyboard mapping problem?

12,878

Solution 1

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

Solution 2

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.

Solution 3

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.

Solution 4

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.

Share:
12,878
Kevin Gauthier
Author by

Kevin Gauthier

I like all programming languages, except R.

Updated on June 04, 2022

Comments

  • Kevin Gauthier
    Kevin Gauthier almost 2 years

    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.

  • Kevin Gauthier
    Kevin Gauthier about 15 years
    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.
  • Kevin Gauthier
    Kevin Gauthier over 14 years
    I think you're right, but it only fixes the one key. +1 for effort, though.