Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable horizontal scroll in visual studio code?

When I scroll with the touch pad with two fingers in Visual Studio Code, I often scroll to the sides a little by accident. This is a bit annoying. I'd be happy to have it scroll only up and down.

like image 837
Ariel Gabizon Avatar asked Aug 14 '17 10:08

Ariel Gabizon


People also ask

How do I turn off horizontal scrolling?

To hide the horizontal scrollbar and prevent horizontal scrolling, use overflow-x: hidden: HTML. CSS.

How do I remove a scroll in VS Code?

Removing the scroll bar As of 2022, there is a Setting: Editor › Scrollbar: Vertical Scrollbar Size . I set it to 0 (zero) and the entire scrollbar column was no longer visible.

How do I enable horizontal scrolling in Visual Studio?

Scroll horizontally with the mouse wheel when holding the shift key. Enables horizontal scrolling by holding down the Shift key and spinning the mouse wheel in Visual Studio 2017, 2019 and 2022.


1 Answers

A partially satisfying solution, is to simply press Alt + z, to have the lines wrapped, and then it doesn't scroll to the side. You can also make wordWrap default as described here How do I turn on text wrapping by default in VS Code

like image 133
Ariel Gabizon Avatar answered Sep 20 '22 17:09

Ariel Gabizon