Visual Studio 似乎随机采用美式键盘布局

发布于 2024-07-13 08:12:21 字数 194 浏览 7 评论 0原文

嘎! 今天这确实给我带来了麻烦。 突然,在没有警告的情况下,“@”(符号处)和“””(双引号)在我的键盘上交换了位置,但仅限于 Visual Studio 2008!

我似乎无法在帮助或在线中找到任何内容来解释/解决此问题。我无意中执行了一些键盘快捷键?

我重新启动了我的电脑,它消失了一两个小时,然后突然回来了

:(

Gah! This is really causing me hassle today. Suddenly without warning '@' (at symbol) and '"' (double quote) are trading places on my keyboard but ONLY in Visual Studio 2008!

I can't seem to find anything in help or online to explain/remedy this. Is there some keyboard shortcut I am inadvertently executing?

I rebooted my PC and it went away for an hour or two and then suddenly came back.

Oh, the insanity :(

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

一个人的夜不怕黑 2024-07-20 08:12:21

我也尝试过同样的事情,但结果是因为我在某些程序中按了Alt+Shift,从而触发了Windows中的语言切换。

是否是您在编码时不小心按了 Alt+Shift 或 Ctrl+Shift(英式布局)?

I have tried the same thing, but it turned out to be because I was hitting Alt+Shift in certain programs, thus triggering the language switch in Windows.

Could it be that you accidentally hit Alt+Shift or Ctrl+Shift (British layout) when coding?

在巴黎塔顶看东京樱花 2024-07-20 08:12:21

这是 Windows 本身更改键盘布局 - 它实际上与 Visual Studio 没有任何关系,但当您使用 Visual Studio 时会发生这种情况,因为您在输入代码时使用的组合键与 Windows XP 使用的默认组合键类似。即时切换键盘布局。

这些说明用于在 Windows XP 中禁用键盘布局切换。 其他版本的 Windows 中也类似:-

  • 进入控制面板并选择区域和语言选项。
  • 然后在“语言”选项卡上点击“详细信息”按钮。
  • 在弹出的对话框中,在“设置”选项卡上,点击底部的“键盘”按钮。
  • 在弹出的“高级按键设置”框中,一一选择其他语言,并取消选中按键顺序选项。
  • 一切都OK了,你就不会再受挫了:)

This is Windows itself changing the keyboard layout - it's not really anything to do with Visual Studio, but it happens when you're using Visual Studio because the key combinations you use when tying in code are similar to the default key combinations Windows XP uses for switching keyboard layouts in the fly.

These instructions are for disabling keyboard layout switching in Windows XP. It's similar in other versions of Windows:-

  • Go into control panel and select Regional And Language Options.
  • Then on the Languages tab hit the Details button.
  • On the dialog that pops up, on the Settings tab, hit the Keyboard button at the bottom of it.
  • On the "Advanced Key Settings" box that pops up, select the other languages one by one and uncheck the key sequence options.
  • OK it all out and you're free from frustration :)
み零 2024-07-20 08:12:21

U62-如果您的解决方案不是他们的答案,也许人们不会将您的解决方案标记为答案?

对我来说这不是 CTRL+SHIFT 或任何其他键绑定问题。

我什至没有安装美国国际键盘,但 Visual Studio 不断恢复到它(我可以在语言栏中看到它,但当我进入控制面板时,它不在已安装键盘的列表中)。

这肯定是 Visual Studio 出了问题,因为如果我然后转到记事本,记事本就知道键盘是英国的。 再次回到VS2010,又回到了美国国际赛。

编辑:答案是进入 Visual Studio 设置,然后选择“国际设置”窗格。 确保语言设置为“与 Microsoft Windows 相同”。 “英语”似乎是美国国际键盘英语。

U62- Perhaps people don't mark your solution as an answer if it's not an answer for them?

It's not a CTRL+SHIFT or any other key binding problem for me.

I do not even have US-International keyboard installed, yet Visual Studio constantly reverts back to it (I can see it in the Language bar, but when I go into Control Panel, it is not in the list of installed keyboards).

It's definitely something wrong with Visual Studio, because if I then move to Notepad, Notepad knows that the keyboard is UK. Move back to VS2010 again and it is back on US International.

EDIT: the answer is to go into Visual Studio settings, and select the International Settings pane. Make sure the Language is set to "Same as Microsoft Windows". "English" seems to be the US International keyboard English.

阿楠 2024-07-20 08:12:21

我将此发布于 另一个问题,但想在此处发布图片,以防您使用的不是 XP,并且想了解如何在 Windows 7 中完成此操作:

在此处输入图像描述

I posted this on another question, but wanted to post the picture here in case you're not using XP, and want to see how to accomplish this in Windows 7:

enter image description here

随波逐流 2024-07-20 08:12:21

我知道这已经很晚了,但实际上没有人说如何禁用它。

在 Windows 7 中,转到区域设置 -> 键盘和布局 -> 更改键盘 -> 高级按键设置-> 输入语言的热键。

选择“输入语言之间”并将按键顺序更改为“未分配”

I know this is quite late, but nobody actually said how you disable it.

In Windows 7, go to Regional Settings -> Keyboards and Layouts -> Change Keyboards -> Advanced Key Settings -> Hot keys for input languages.

Select the "Between input languages" and change the key sequence to "Not Assigned"

一念一轮回 2024-07-20 08:12:21

Windows 7

从以下位置删除除一个键盘之外的所有键盘:

控制面板>> 区域和语言 >> 键盘和语言 >>> 更改键盘

在此处输入图像描述

Windows 7

Remove all but one keyboard from:

Control Panel >> Region And Language >> Keyboards and Languages >> Change Keyboards

enter image description here

一直在等你来 2024-07-20 08:12:21

我在 Visual Studio 2010 Beta 1 中遇到了同样的问题。

但是,我了解到按 CTRL + SHIFT 可以在 Qwerty 和 Dvorak 之间切换键盘。

当我保存所有内容(CTRL + SHIFT + S)并在按下“S”之前意外释放,直到我弄清楚导致问题的原因时,这是非常痛苦的。

I ran into the same problem in Visual Studio 2010 Beta 1.

However, I learned that pressing CTRL + SHIFT toggles your keyboard between Qwerty to Dvorak.

This was extremely painful when I save all (CTRL + SHIFT + S) and accidentally release before hitting the 'S' until I figured out what was causing the issue.

呆橘 2024-07-20 08:12:21

实际上我可以按照以下步骤重现此内容。 我怀疑这可能与编译的应用程序的语言文化有关。
我的语言栏上有英国和美国键盘。

我构建了一个简单的 C# Windows 窗体应用程序。
我将键盘设置设置为美国。 我有一个美国键盘,尽管机器上的其余区域设置是英国(我拥有的美国版 Micosoft 键盘比英国版少一个键,而且是一个反斜杠,grr。)
当我在调试器中启动应用程序时,键盘设置奇迹般地变回英国设置。
每次都会发生这种情况,因此并不是按下了另一个键。
我还应该提到,这种情况发生在 Windows Vista 中。

Actually I can reproduce this following these steps. I suspect that it might have to do with the language culture of the compiled application.
I have UK and US keyboard on the language bar.

I have built a simple C# Windows Forms application.
I set the keyboard settings to US. I have a US keyboard although the rest of the regional settings on the machine are UK (The US version of the Micosoft keyboard I have has one less key than the UK version and it is a backslash, grr.)
When I launch the application in the debugger the keyboard settings have miraculously changed back to the UK settings.
This happens every time so it is not that another key is being pressed.
I should also mention that this occurs in Windows Vista.

一花一树开 2024-07-20 08:12:21

在 XP 中,如果安装了超过 1 种键盘输入语言(例如:Dvorak 和 Qwerty),XP 将随机翻转,特别是返回到操作系统的默认语言,并且大多数情况下仅在使用 Microsoft 应用程序时发生。 我 100% 确定我没有按 Alt+Shift 或任何其他组合键。 无论您使用什么键盘映射或语言,同样的问题可能会困扰您。

唯一的解决方法是删除第二语言并仅在需要时添加它。 另一个解决方案是使用 Vista,我注意到它不再受到这个错误的困扰(自从我 2003 年开始使用 Dvorak 以来,这个错误就一直存在,甚至 XP SP3 也没有修复它)。

In XP if more than 1 keyboard input language is installed (ex: Dvorak and Qwerty) XP will flip flop randomly, particularly back to the OS's default language, and it mostly only happens when using a Microsoft application. And I'm 100% sure I'm not hitting Alt+Shift or any other key combination. This same problem will probably haunt you no matter what keyboard mappings or languages you have.

The only fix is to remove the secondary language and only add it when you need it. The other solution is to use Vista, which I notice no longer suffers from this bug (that's been in there since I started using Dvorak back in 2003 and not even XP SP3 fixed it either).

我三岁 2024-07-20 08:12:21

要在 VSC 中改回您想要的语言:
1-您必须按 Ctrl+Alt+P,或 Ctrl + Shift + P
尝试在那里写“显示语言”,它应该使用“配置显示语言”选项自动完成
2-然后在顶部出现的显示屏中,写下您想要的语言,以防它没有出现,
3- 完成后,VSC 将要求您重新启动。
4-重新启动后应该没问题。

它一直为我解决问题

To changeback to the language you want in VSC:
1- you have to press Ctrl+Alt+P,or Ctrl + Shift + P
try writting there 'display laguage', it shoulp autocomplete with the option'configure display language'
2- then in the display that will appear at the top, write the language you want in case it does not appear,
3- once this is done, VSC will ask you to restart.
4- once restart is done it should be fine.

It solves the issue for me the whole time

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文