Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fix this Visual Studio keyboard mapping problem?

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.

like image 665
Craig Stuntz Avatar asked Apr 14 '09 12:04

Craig Stuntz


People also ask

How do I reset key bindings in Visual Studio?

Click File > Preferences > Keyboard Shortcuts. There is a triple-dot (...) at the top-right hand corner. Click on that and select "Show User Keybindings" Delete your listed keybindings.

How do I change the keyboard layout in Visual Studio code?

Customizing Shortcuts To configure keyboard shortcuts the way you want, go to the menu under File > Preferences > Keyboard Shortcuts. This will open the Default Keyboard Shortcuts on the left and your User/keybindings. json file where you can overwrite the default bindings on the right.

What does keyboard mapping mean?

Alternatively known as keyboard key mapping, keyboard mapping describes assigning keyboard keys to specific actions. For example, in a computer game, the W, A, S, and D keys may be mapped to move a character forward, left, backwards, and right in 3-D space, respectively.

How do I find Visual Studio shortcuts?

The Global context means that the shortcut is applicable in any tool window in Visual Studio. You can look up the shortcut for any command by opening the Options dialog box, expanding the Environment node, and then choosing Keyboard.


1 Answers

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

like image 196
Craig Stuntz Avatar answered Sep 20 '22 03:09

Craig Stuntz