PejmanNik/vscode-autoScroll

preserve horizontal scroll position

Nick-the-freak opened this issue · 2 comments

I wonder if anyone also wanted this and sorry if it's a duplicate.
It could be helpful to be able to keep the horizontal position instead of sticking to the left most. Thanks in advance!

Note, it doesn't "stick to the left most", but rather it scrolls to the last character. So, if file ends with a newline, it will scroll to the left, otherwise it will scroll to the right of last line.

I also found in need an option to keep horizontal scroll position. My log files contain JSON with array of objects, where each object is a long single line, and it scrolling to the right making it very disrupting.

It seems I was wrong. It scrolls to cursor position. as long as cursor is in view, it won't scroll horizontally, unless added line is shorter...

It seems it's not possible
microsoft/vscode#105625