microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.64k stars 29.04k forks source link

Synchronized Scrolling in Split Editor #33110

Closed jcastanza-apollidon closed 7 months ago

jcastanza-apollidon commented 7 years ago

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.

compilenix commented 7 years ago

Related #17362

kkukshtel commented 6 years ago

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

stereokai commented 6 years ago

This doesn't get enough love

atif089 commented 6 years ago

bumping this cool request

alete89 commented 6 years ago

spreading love

usaspiff commented 6 years ago

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

jeanbenitez commented 6 years ago

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

ghaschel commented 6 years ago

Would love to see this too

Tuttu commented 6 years ago

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

LailaAli commented 6 years ago

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

brandonhc33 commented 6 years ago

i need this, please!

alete89 commented 6 years ago

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

ankedsgn commented 6 years ago

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

deckeogh commented 6 years ago

I'd love to see this tooooo

ddeamilivia commented 6 years ago

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

subudhiroshan commented 6 years ago

Yes please!

savbran commented 6 years ago

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

yume-chan commented 6 years ago

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.

oshliaer commented 6 years ago

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

alete89 commented 6 years ago

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.

oshliaer commented 6 years ago

Must have and thumbs up

jost-s commented 6 years ago

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

HosfordDotMe commented 6 years ago

Looking for this πŸ‘

AnselmoMS commented 6 years ago

waiting for it πŸ‘

fmonroe commented 6 years ago

I'd love to have this too. Thanks.

kudlohlavec commented 6 years ago

πŸ‘

intellekta commented 6 years ago

Waiting too

davinaizer commented 6 years ago

πŸ‘

sgaamuwa commented 6 years ago

πŸ‘πŸΎ

Shamtam commented 6 years ago

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

joemidi commented 6 years ago

πŸ‘

remino commented 6 years ago

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

oshliaer commented 6 years ago

@remino

It gives read-only state only.

stereokai commented 6 years ago

@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.

sguillia commented 6 years ago

@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!

stereokai commented 6 years ago

@sguillia I am all for it! :)

arshmakker commented 5 years ago

I too would love to have this feature.

krisgardiner commented 5 years ago

Would absolutely love this feature.

samasri commented 5 years ago

πŸ‘

virgilshelton commented 5 years ago

πŸ‘

tarvo commented 5 years ago

I would like to have this feature as well.

marnunez commented 5 years ago

Same here

xahon commented 5 years ago

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

ShalbafZadeh commented 5 years ago

spreading love

mymage commented 5 years ago

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

jalovatt commented 5 years ago

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.

intellekta commented 5 years ago

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

NikolaiPN commented 5 years ago

+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.

kas-elvirov commented 5 years ago

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

JoBrad commented 5 years ago

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.