visual-studio 如何在 Visual Studio 2010 中禁用 Ctrl+scroll 缩放?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2861655/
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 to disable zoom on Ctrl+scroll in Visual Studio 2010?
提问by Lawrence Johnston
Visual Studio 2010 adds a zoom setting on the bottom left of the text editor (to the left of the horizontal scroll bar) and also adopts the Ctrl+mouse scroll idiom for zooming in and out.
Visual Studio 2010 在文本编辑器的左下方(水平滚动条的左侧)添加了缩放设置,并且还采用了Ctrl+mouse scroll 惯用语进行放大和缩小。
The former is fine, but I dislike the latter as I am occasionally still holding control when I start scrolling my source code (which results in the text size radically changing and completely throwing me off whatever I was doing).
前者很好,但我不喜欢后者,因为当我开始滚动我的源代码时,我偶尔仍然保持控制(这导致文本大小发生根本性的变化并且完全让我放弃我正在做的事情)。
How do I disable it?
如何禁用它?
回答by drharris
Go to Tools->Extension manager, and search the online gallery for "wheel". Download "Disable Mouse Wheel Zoom"
转到工具->扩展管理器,然后在在线图库中搜索“wheel”。下载“禁用鼠标滚轮缩放”


Or use this direct link: Disable Mouse Wheel Zoom.
或使用此直接链接: 禁用鼠标滚轮缩放。
回答by subbu
It is possible that Visual Studio 2010 will get into a state where ordinary use of the mouse wheel (ie without Ctrlpressed) results in text increasing or decreasing in size.
Visual Studio 2010 可能会进入普通使用鼠标滚轮(即不Ctrl按下)导致文本大小增加或减少的状态。
Use ctrl+ scroll on the page to recover from this state.
ctrl在页面上使用+ 滚动可从此状态恢复。
回答by JaredPar
I don't believe there is a way to do this the editor through the exposed options. However Noah Richards, a visual studio platform developer, wrote a Visual Studio extension that disables the mouse scroll zooming.
我不相信编辑器可以通过公开的选项来做到这一点。然而,Visual Studio 平台开发人员 Noah Richards 编写了一个禁用鼠标滚动缩放的 Visual Studio 扩展。
回答by Herb Caudill
This is a problem throughout Windows, not just in Visual Studio. To disable Ctrl-Scroll zooming behavior throughout Windows, you can use AutoHotKey as described in this answer:
这在整个 Windows 中都是一个问题,而不仅仅是在 Visual Studio 中。要在整个 Windows 中禁用 Ctrl-Scroll 缩放行为,您可以使用 AutoHotKey,如本答案所述:
^WheelDown::return
^WheelUp::return
This just reprograms AutoHotKey to do nothing on Ctrl-Scroll.
这只是重新编程 AutoHotKey 在 Ctrl-Scroll 上什么也不做。

