Visual Studio 2010 中的滚动锁定错误

发布于 2024-11-06 07:40:12 字数 241 浏览 0 评论 0原文

当我在 Visual Studio 2010 中工作时,IDE 似乎会随机切换到“滚动锁定”模式。这是我不知道的新功能(由某些指定的按键/鼠标单击启动)还是错误?我猜这实际上是我的系统上的计算机/硬件故障,但想检查是否有其他人遇到此问题?

当我处于这种“模式”后,我似乎无法摆脱它。我尝试过多次物理打开/关闭 ScrLk、突出显示文本等。我​​曾经“疯狂点击”过一次,但不知道如何操作。此时,我唯一的选择就是关闭IDE并重新启动,然后一切就恢复正常了。

When I'm working in Visual Studio 2010, the IDE seems to switch to "Scroll Lock" mode at random times. Is this a new feature that I'm not aware of (initiated by some designated key/mouse-click) or a bug? I'm guessing this is actually a computer/hardware glitch on my system, but wanted to check if anyone else is experiencing this issue?

After I'm in this "mode", I can't seem to get out of it. I've tried physically turning ScrLk on/off multiple times, highlighting text, etc. I 'crazy-clicked' my way out of it once, but have no idea how. At that point, my only option is to close the IDE and restart, then everything is back to normal.

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

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

发布评论

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

评论(9

层林尽染 2024-11-13 07:40:13

它认为控制按钮已按下,因此只需按控制按钮即可修复

it thinks the control button is pressed, so just press control and it should fix

‘画卷フ 2024-11-13 07:40:13

不,这是一个 CTRL 键错误...一直使用左键,偶尔,VS2010 会崩溃并让鼠标滚轮独立操作以进行缩放而不是滚动,Shift-F5 不会停止调试等

。我....按右CTRL键。不知道为什么,但它让它消失了。

Nope, it's a CTRL key bug... using the left key all the time and occasionally, VS2010 will freak out and let the mouse wheel operate independently for zooming rather than scrolling, Shift-F5 won't stop debugging, etc.

Solution for me.... hit the right CTRL key. Dunno why, but it made it go away.

知足的幸福 2024-11-13 07:40:13

这当然不是 Visual Studio 本身的功能。虽然我同意不太可能,但有可能是第三方扩展导致了这种行为。为了排除这个问题,我将禁用所有扩展并查看问题是否仍然出现。

如果仍然出现这种情况,我会拿起另一个键盘来测试硬件问题。

This is certainly not a feature of Visual Studio itself. It is possible, although I would agree unlikely, that a third party extension is causing this behavior. To rule this out I would disable all extensions and see if the problem still occurs.

If it still occurs then I would grab another keyboard to test the hardware issue.

苍景流年 2024-11-13 07:40:13

有一个已知错误 在 Visual Studio 2010 中可以执行此类操作。
我的经历是,左 CTRL 键会“卡在”应用程序中(右 CTRL 键似乎不会发生这种情况)。

发生这种情况时,您开始出现奇怪的行为(例如,当您按住 ctrl-上/下箭头时出现滚动锁定效果,或者无法停止调试,因为当您执行 SHIFT-F5 时,它会重新启动应用程序,或者您更改使用滚轮时代码文本的大小)。

不幸的是,VS2010 中没有针对该问题的修复。您可以选择继续使用它,或者升级到 VS2012。其他人重新规划了一些捷径来解决这些问题。

There is a known bug in Visual Studio 2010 that does this sort of thing.
The way I have experienced it is that the left CTRL key will get "stuck" in the application (it doesn't seem to happen with the right CTRL key).

When this happens, you start to get bizarre behavior (like the scroll lock effect with when you hold the ctrl-up/down arrows, or being unable to stop debugging because it will restart the application when you do SHIFT-F5, or you change the size of the code text when you use the scroll wheel).

Unfortunately, there is no fix for it coming in for VS2010. You have the choice of living with it, or upgrading to VS2012. Others have re-mapped some of their short cuts to work around these problems.

小耗子 2024-11-13 07:40:13

对于那些遇到这个问题并阅读本文的人..

我找到了一种绕过这个问题的方法,你需要做的就是 -
关闭右下角的“属性”小窗口。

这样您就不会再遇到此错误了。 :)

for those who have this problem and reading this..

I found a way to bypass this problem and all you need to do is-
close the little window of Properties in the right-down corner.

and no longer you'll have this bug. :)

吻泪 2024-11-13 07:40:13

你真的是说ScrollLock吗? AFAIK VisualStudio 不会以任何方式改变行为来响应 ScrollLock。

我怀疑您遇到的情况是 VS 错误地认为您按住了一个或多个修饰键(ctrl、shift alt)。要纠正此问题,请在 VS 获得焦点时一次按下并释放每个修饰键。

真实示例:

我正在调试的应用程序具有焦点,当我突然遇到断点以提供 VS 焦点时,我按住 ctrl 键来执行应用程序内功能。然而,VS 似乎没有注册我已经释放了 Ctrl 键,因此我第一次尝试使用鼠标滚轮在文档中滚动导致我的字体 dpi 发生变化...(ctrl+滚轮 = 缩放)

修复:

按下并释放当 VS 具有焦点时按修饰键。

Do you really mean ScrollLock? AFAIK VisualStudio does not change in behavior in any way in response to ScrollLock.

I suspect what you are experiencing is VS incorrectly believes one or more of your modifier keys are held (ctrl, shift alt). To correct this press and release each of the modifier keys one at a time while VS has focus.

Real example:

The app I am debugging has focus and I am holding the ctrl key for an in-app function when I suddenly hit a breakpoint giving VS focus. However VS appears to have not registered that I have released the Ctrl key so my first attempt to scroll within the document using the mouse-wheel results in my font dpi changing... (ctrl+wheel = zoom)

Fix:

Press and release the the modifier key while VS has focus.

〆凄凉。 2024-11-13 07:40:13

我遇到了这个问题,鼠标上的滚轮会更改打开代码的缩放百分比。在 Visual Studio 处于焦点状态时按 ALT 对我有用。

I had this issue where the scroll wheel on my mouse would change the zoom percentage of my open code. Pressing ALT while Visual Studio was in focus worked for me.

菊凝晚露 2024-11-13 07:40:13

我的解决方案是按左 CTRL 键。不知道为什么,但这让问题消失了。这个答案与上面建议点击右侧 CTRL 键的答案不同。我首先尝试过,但它没有解决问题。但当我按下左 CTRL 键时,问题确实解决了。
另一种选择是退出 Visual Studio 2010 并再次启动。

The solution for me was to hit the left CTRL key. Dunno why, but it made the problem go away. This answer is different than the one above suggesting to hit the right CTRL key. I tried that first but it did not fix the problem. But when I hit the left CTRL key it did fix the problem.
Another option is to exit Visual Studio 2010 and start it up again.

忆悲凉 2024-11-13 07:40:13

自从我搬到另一台开发机器后,我就遇到了这个问题,我认为我的显卡有问题,几乎让老板给我订购了新的,因为我无法解决这个问题。结果关闭属性窗口立即解决了问题!我之前的修复方法是浮动所有内容,而不是在固定选项卡区域中保留任何打开的内容,这种方法可行,但不方便。

I had this issue ever since I moved to another development machine, I thought my graphics card was the issue, almost had the boss order me new ones, as I could not get this resolved. Turns out closing the property window immediately fixed the issue!. My previous fix was to float all and not keep anything opened in the pinned tab area, which works, but is inconvenient.

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