Horizontal scroll with mouse wheel at Visual Studio

EDIT as ShiftScroll seems to have been abandoned, I created a small extension that adds this capability to Visual Studio 2017, 2019 and 2022.

https://marketplace.visualstudio.com/items?itemName=drewnoakes.SideScroller

https://github.com/drewnoakes/vs-side-scroller

It enables scrolling in the text editor and several other panels such as the output window. Hopefully it helps someone out.


For VS2015 the ShiftScroll extension does this perfectly.

https://marketplace.visualstudio.com/items?itemName=NGPearce.ShiftScroll

It scrolls left/right at a very comfortable speed while you hold the shift key.

This would be a good built-in feature of VS IMHO.


There are a few issues with horizontal scrolling in VS2010, some of which have been fixed or worked around after VS2010 shipped. I'm not sure if the MX1100 is a specific example of any of the following, but some of the issues were/are:

  1. Some mice drivers end up sending the event to the wrong HWND; we've seen cases where events will always be sent to the last-but-one thing focused, e.g. the solution explorer will scroll when the editor has focus. I think this one was fixed.
  2. Many drivers, before sending WM_MOUSEHWHEEL (or faking WM_HSCROLL) check to see if the main HWND has WS_HSCROLL (declares it has a win32 horizontal scrollbar). Since VS's main window doesn't, and things like the editor don't have win32 horizontal scrollbars, they'll refuse to send horizontal scroll messages. This one is unfixed.
  3. (Definitely not your case, but) VMWare Fusion (on OS X) running windows doesn't forward on horizontal scroll events to the client OS.

I'll check with people to see if the MX1100 is known or falls into either of the first two categories.