Reputation: 126547
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.
devenv /reset
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.
Upvotes: 7
Views: 13606
Reputation: 2408
Did you do something like install ReSharper?
If you did, you can fix this by going through your options for Visual Studio and/or the options for ReSharper (Can't remember now) and simply setting them up to continue using Visual Studio Layouts as opposed to that of the Add-in.
Upvotes: 0
Reputation: 155
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.
Upvotes: 4
Reputation: 6453
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.
Upvotes: 2
Reputation: 126547
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).
Upvotes: 7
Reputation: 36
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!)
Upvotes: 0
Reputation: 31928
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.
Upvotes: 3