Vscode: Synchronized Scrolling in Split Editor

Created on 24 Aug 2017  Β·  88Comments  Β·  Source: microsoft/vscode

I have a feature request related to synchronized scrolling in the Split Editor. I checked for extensions and didn't see any. Was wondering if this is the pipeline or not.

feature-request workbench-editors

Most helpful comment

This doesn't get enough love

All 88 comments

Related #17362

Would love this as well. Synchronized scrolling would allow for easy text diffs, similar to how the version diff works for the source control.

This doesn't get enough love

bumping this cool request

spreading love

I would love to see this feature implemented as well, and be able to see text diffs.

πŸ‘ +1!
I would love to see this too!

Would love to see this too

Adding my own voice for this addition. πŸ‘

Agree, this would be a very handy feature. Are there any updates on this request?

i need this, please!

I'm sure that this will catch @rebornix 's attention soon

Yes, this would be a great addition. πŸ‘πŸΌ

I'd love to see this tooooo

It would be a good addition, and _probably_ not too difficult to implement since it's already implemented on the file comparison, which btw is a nice workaround in the meantime

Yes please!

πŸ‘ +1
It would be great to have this feature to check editing between similar files.

For quickly compare two files:

  1. Open one file
  2. Select all
  3. Copy
  4. Open another file
  5. F1, File: Compare Active File with Clipboard

And there is already API for an extension to synchronize scrolling position:

https://github.com/Microsoft/vscode/blob/8b5824e54d7e52a7ae8fc2ae4874c635022ba2db/src/vs/vscode.d.ts#L5613

It's up to extension authors what they want to do.

This feature could be used for parallel browsing of files in different languages. For example, translations in repositories.

This feature could be used for parallel browsing of files in different languages. For example, translations in repositories.

that's the most incumbent case of use for me.

Must have and thumbs up

Yes, I'd love to have it. To compare versions of code or for refactoring similar functions.

Looking for this πŸ‘

waiting for it πŸ‘

I'd love to have this too. Thanks.

πŸ‘

Waiting too

πŸ‘

πŸ‘πŸΎ

I'm amazed this hasn't gotten more attention. I'd expect the functionality similar to what is implemented in Notepad++. +1 here.

πŸ‘

You can already compare files in that fashion. See #34762.

@remino

It gives read-only state only.

@remino It's not for comparison, it's for editing! We don't want a diff, we want to edit two files side-by-side and sync their scrolling.

@stereokai We want synchronized scrolling on two editors. An editor can be a file but also a diff. We may want to compare two diffs side-by-side too!

@sguillia I am all for it! :)

I too would love to have this feature.

Not ideal, but this works for my purposes: https://github.com/Microsoft/vscode/issues/34762

Would absolutely love this feature.

πŸ‘

πŸ‘

I would like to have this feature as well.

Same here

Just execute File: Compare Active File With ... and you will be able to scroll both files in sync

spreading love

I'm looking if these feature exists and landed here, so a +1, thanks.

Just execute File: Compare Active File With ... and you will be able to scroll both files in sync

And if we don't specifically want a diff, but just to read both files? What if we want to edit both files? What if we just want to view twice as much of one file?

A separate issue with using the diff viewer for this - only users who are aware of "Compare File With..." will know about it.

you say the right thing, it should also be possible without diff

+1. The "compare with" option is useful but sometimes I'd like to edit the files as well and it's impossible using that option. I was thinking of something like "lock scroll" option so you can position both files in a certain place and then lock the scroll so you can scroll them simultaneously.

there is no need for this tool because Fabio Spampinato made awesome extension called Diff

There are many suggestions in this thread about using diff, and nearly every time someone makes the point that synchronized scrolling is not just for diffs. I don’t think suggesting it yet again is helpful.

Diff should do what you want. Try using diff πŸ˜‰

Diff is not enough. I want to translate some .md files or improve the translation, google lead me here. 😞 Now I think I have to use vim to do that.

That's exactly my opinion. Code should provide this function. The constant suggestions of Diff only annoying.

3 years and something present in nearly every other text editor has not been seen in Code yet

I agree, this feature would be great to see.

I'm agree too! Will be nice for language translation tasks.

I agree, the 'compare' feature doesn't fit my needs. Sometimes I'm comparing a single function within two very large, very different files.

sublime text have this feature 7 years ... vscode don't even bothered about implementing. such a shame

Please add this. It is a standard feature in text editors.

I just ran into a great real-world example where all of the previous suggestions to use a Diff would be completely useless.

Our app has English and French localization files, and after making a bunch of updates to the English file I'm now working through the French to make the equivalent changes there.

I've got the English file's changes open in one pane so I can see the lines I updated, the French file in the other, and it would be lovely if the two panes could scroll together. I can't use Compare With... because the _entire file_ would show up as being different.

Yes, please !!!

please add it...

I would love it too!

This would be helpful... +1 for me too!

A simple hotkey modifier would be great (ie: ctrl+alt+scroll = lock scrolling of all visible panes)

yes please add this feature!

Adding yet another voice to the many asking for this feature! On the bright side, Notepad++ does do this, if you're willing to install more than one editor.

I’ll be yet another voice in the crowd here.

This is absolutely ESSENTIAL for many people. Diff is highly useful, but it is a completely unrelated feature that should not in any way be confused with being able to sync scrolling. Personally, I find myself using diff perhaps once a month or so, whereas I find myself wanting to sync scrolling at least three or four times a week in situations where diff would be completely useless (e.g., translating text files or any other situation where there is a working document and a more or less parallel lookup document).

It’s been two and a half years since this thread started. Hundreds of thumbs-up, dozens of β€œyes please!” comments… and not a peep about it from the developers? Sad. πŸ‘Ž

I can't believe it has been so long since this thread was created. This needs to be a feature!

much awaited feature, mods please update on the progress

count me in

Need this feature, waiting for it.

I am too waiting for this cool feature.

Yeah great idea, let's do it!!

It's a value add, it should be done.

+1!

I'm starting to get the picture about how VSCode development works. There's either a serious shortage of developer resources, or the developers just have an unstated resistance to some feature or other, but certain features that are standard in other editors like Notepad++ (like this one or a configurable toolbar) generate tons of feature request issues, all of which are closed by the devs, leaving only one issue open where people come by for years asking for the feature with no response from the devs. It's like they keep that one open issue as a dump for user discontent & hit the ignore button on it, meanwhile giving the PR response that they are eliciting 'conversation', while never actually participating in the conversation.

Just my impression.

@aeschli you solved my issue #83983, so can I ask you the courtesy to give a comment on these issue to understand if it is a problem of prioriry, complexity or utility? Thanks.

absolutely!

I agree, would be great!

As feature-packed vscode may get, the raw strength of vim will never be obsolete. :set scb in each pane, and you are good to go.

I'm starting to get the picture about how VSCode development works. There's either a serious shortage of developer resources, or the developers just have an unstated resistance to some feature or other, but certain features that are standard in other editors like Notepad++ (like this one or a configurable toolbar) generate tons of feature request issues, all of which are closed by the devs, leaving only one issue open where people come by for years asking for the feature with no response from the devs. It's like they keep that one open issue as a dump for user discontent & hit the ignore button on it, meanwhile giving the PR response that they are eliciting 'conversation', while never actually participating in the conversation.

Just my impression.

I think you've totally hit the nail right on the freaking head. I've noticed the exact scenario that you describe A LOT across this entire GitHub project, and while we'll never know for sure whether you're right - because they'll never admit it, or probably even notice our messages like you said - I'd still bet my entire life savings on it.

Which is an absolute travesty of justice IMHO. It's one thing to completely ignore user feedback, but to do it so sneakily and try to make out like you're not doing it, is a blatant "f--- you, we don't care about your input AT ALL". If I didn't need it so badly, I'd be discontinuing use of VS Code immediately due to this single presumable dev attitude.

Everybody hands up, here comes Sync Scroll

This extension will help you synchronize scrolling on split editor.
Try it out and leave your reviews or issues or PRs.
Very glad to hear that.
Happy hacking and long lives the open source community.

Everybody hands up, here comes Sync Scroll

Great!

Improvment suggestion https://github.com/dqisme/vscode-sync-scroll/issues/1

First view β†’ Works fine! Thanks!

Thanks, works fine.

From: dq notifications@github.com
To:microsoft/vscode vscode@noreply.github.com
CC:intellekta uwe.cramer@intellekta.de, Comment comment@noreply.github.com
Date: 03.06.2020 00:02
Subject: Re: [microsoft/vscode] Synchronized Scrolling in Split Editor (#33110)
Everybody hands up, here comes Sync Scroll
( https://marketplace.visualstudio.com/items?itemName=dqisme.sync-scroll)
This extension will help you synchronize scrolling on split editor.
Try it out and leave your reviews or issues or PRs.
Very glad to hear that.
Happy hacking and long lives the open source community.
β€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
( https://github.com/microsoft/vscode/issues/33110#issuecomment-637829526) , or unsubscribe
( https://github.com/notifications/unsubscribe-auth/ADLQHAC3DD372DWJ2R7TMX3RUVZGJANCNFSM4DYHXJBA) .

Everybody hands up, here comes Sync Scroll

Great!

Improvment suggestion dqisme/vscode-sync-scroll#1

Thanks for the feedback!

@tejasvi I don’t know that comparison between VSCode and vim in their current states is that fair. Vim was released in 1987 but didn’t get split windows until 2001 (version 6, unless I’m mistaken). The VSCode community seems to have delivered on this feature comparatively quickly. πŸ˜„

Was this page helpful?
0 / 5 - 0 ratings

Related issues

borekb picture borekb  Β·  3Comments

shanalikhan picture shanalikhan  Β·  3Comments

villiv picture villiv  Β·  3Comments

sirius1024 picture sirius1024  Β·  3Comments

omidgolparvar picture omidgolparvar  Β·  3Comments