Question

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.

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?

Was it helpful?

Solution

Go to Tools->Extension manager, and search the online gallery for "wheel". Download "Disable Mouse Wheel Zoom"

enter image description here

Or use this direct link: Disable Mouse Wheel Zoom.

OTHER TIPS

It is possible that Visual Studio 2010 will get into a state where ordinary use of the mouse wheel (ie without Ctrl pressed) results in text increasing or decreasing in size.

Use ctrl + scroll on the page to recover from this state.

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.

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:

^WheelDown::return
^WheelUp::return

This just reprograms AutoHotKey to do nothing on Ctrl-Scroll.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top