How to disable horizontal scroll in visual studio code?

Solution 1:

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

Solution 2:

If you have this problem because of Gitlens (blame lines), the solution i found is to disable gitlens.currentLine.scrollable (or set it to false in the settings json file.