4

Does anyone know if there is a hot key I can press to activate horizontal scrolling with my mouse wheel in Visual Studio 2010?

e.g. Pressing 'ctrl' while scrolling the mouse wheel would scroll the window to the left/right instead of up/down.

I believe Photoshop has this feature, though I can't remember the exact key of the top of my head. I think it's either 'ctrl' or 'alt'.

Edit: Middle-click does not do it for me, I'm looking for a hot-key.

1
  • Yes, it is Ctrl, but to be fair, Photoshop is a graphics program. VS is a text program and like most text programs, holding Ctrl while scrolling changes the text size.
    – Synetech
    Mar 30 '12 at 17:43
4

Install Autohotkey and this script:

^+WheelUp::  ; Scroll left.  
ControlGetFocus, fcontrol, A  
Loop 20  ; <-- Increase this value to scroll faster.  
    SendMessage, 0x114, 0, 0, %fcontrol%, A  ; 0x114 is WM_HSCROLL and the 0 after it is SB_LINELEFT.  
return  

^+WheelDown::  ; Scroll right.
ControlGetFocus, fcontrol, A  
Loop 20  ; <-- Increase this value to scroll faster.  
    SendMessage, 0x114, 1, 0, %fcontrol%, A  ; 0x114 is WM_HSCROLL and the 1 after it is SB_LINERIGHT.  
return
1
  • doesnt work for me :(
    – Vazgen
    Oct 13 '14 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.