visual-studio 如何解决这个 Visual Studio 键盘映射问题?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/747331/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I fix this Visual Studio keyboard mapping problem?
提问by Craig Stuntz
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.
有些东西(谁知道,甚至可能是我,虽然肯定不是故意的)改变了 Visual Studio 2008 中的键盘映射,我不知道如何将它恢复为默认值。
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.
我看到的问题的症状是,当我键入不在文件顶部 using 语句中列出的命名空间中的类的名称时,将该命名空间添加到Ctrl.ShiftAltF10文件的快捷方式(展开工具提示),默认情况下,+ (句点)已更改为+ + 。可能还有其他关键设置发生了变化,但目前这是一个让我非常恼火的设置。
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.
- 工具、选项、环境、键盘,按重置按钮。(附加映射方案设置为默认,但我也尝试过 VC #2005;都没有解决问题。)
- 工具,导入导出设置,重新导入C#开发者设置
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 allof the key binding spec to their default settings.
我知道我可能可以通过自定义来修复这个一键绑定,但我不想这样做。我想将所有键绑定规范重置为其默认设置。
采纳答案by Craig Stuntz
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).
我发现了问题:当我安装 F# 时,Ctrl+.被 FSI 重新映射。这就是为什么重置键映射没有解决问题的原因:我仍然有 F#。我丢失的其他映射的答案是“那些由 FSI 映射的”(在键盘映射中键入 FSI;只有两个)。
回答by Joris
I came across the same problem, (Tools-Options->Keyboard) View.ShowSmartTagis the field where you can re-assign the shortcut manually to Ctrl+ .
我遇到了同样的问题,(工具-选项->键盘)View.ShowSmartTag是您可以手动将快捷方式重新分配给Ctrl+的字段.
I know it's a few months post date, but that should do the trick.
我知道这是几个月后的日期,但这应该可以解决问题。
回答by Shay Erlichmen
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.
你周围有一个“工作”的视觉工作室吗?您可以从该机器导出设置(仅键盘设置)并将其导入您的机器。
回答by Alfred Myers
回答by Gineer
Did you do something like install ReSharper?
您是否执行过安装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.
如果您这样做了,您可以通过查看 Visual Studio 和/或 ReSharper 的选项(现在不记得)并简单地将它们设置为继续使用 Visual Studio 布局而不是加载项来解决此问题.
回答by user275132
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!)
发生在我身上的事情......确保键盘上的“F lock”键(如果你是其中之一)打开......我没有缝制我关闭它,没有任何工作正常。(F5 - 打开打开的对话框,F10 切换到拆分模式!)

