vscode-sync-scroll icon indicating copy to clipboard operation
vscode-sync-scroll copied to clipboard

Feature Request: Offset scrolling by fixed amount

Open Kylelem62 opened this issue 4 years ago • 2 comments

The offset feature somewhat already performs this task, but it would be more convenient to use a command that enables offset scrolling with a pre-defined offset.

This is useful for expanding the usable area of the editor pane. I want to see my code scroll off of the bottom of the left pane, and onto the top of the right pane and visa versa.

Things editor features like code folding would need to be synchronized between panes in this mode.

The justification: Code is largely a vertical format, but most people have horizontal screens. This means in a single-pane environment there is a ton of empty space on the screen on the left side. I want to see more of my code on the screen at a time to have more context, but I still want a unified scroll.

Kylelem62 avatar Mar 16 '21 15:03 Kylelem62

@Kylelem62 Thanks for the idea. Let me try to understand your requirements.

Let's say you have a big file to edit. In order to utilize the wide range of your monitor, you wanted to 1) split your editor into two panes(left, right) 2) one pane shows the top part of the big file while the other pane shows the bottom part 3) the two panes should be able to scroll synchronically.

Did I as above understand correctly? Please let me know if you want to elaborate more on this.

dqisme avatar Apr 03 '21 22:04 dqisme

I think you did understand him correctly. So as line 1000 disappears from one pane, it shows up in the top of the next and so forth. I think also the offset scrolling is a little buggy, it seems to jump around unexpectedly. I wonder if it gets confused by folded regions? Also I've seen a third pane not scroll, then scroll. it would be nice if there was a way to configure which panes are linked for scrolling.

TedKus avatar Jul 14 '21 20:07 TedKus