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.
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.
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.
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.
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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With