You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scroll Sync from Markdown Editor To Markdown Preview #19459
VSCode 1.9 add scroll sync from the markdown preview to the markdown editor, along with selection view sync from the editor to the preview. The remaining feature would be: scroll the markdown editor scrolls the markdown preview
Reacted by Dominik K., Sebastiaan Luca, Tim Heuer, LanderlYoung, Alexander Kachkaev, Tom Alon, Gabriel Nechita and Damon P. Cortesi
A bug prevented 1.9's markdown synchronization from working in some cases due to a drive letter casing issue on Windows #20064. This should be fixed in insiders and 1.9.1. If you still see problems after updating, please open a new issue and I'll take a look.
I tried to use workspace settings instead of default settings, the sync did worked. However, I guess users would be happy if sync from editor to preview could work like from preview to editor. I mean scroll sync but not selection sync. Anyway, Thank you very much! : )
How difficult would it be to implement this? I can try submitting a PR after a hint if the solution does not require massive platform changes.
Have been working in VSCode since the last week after switching from Atom. Still can't get used to the fact that the preview does not follow the scrolling of the markdown source – this works pretty smoothly in Atom. I know I can click anywhere in the source and the preview will follow the cursor. However, that's pretty far from an ideal UX.
Thanks Matt Bierner (@mjbvz) for clarifying that, understood. It'll be awesome to see this moved out of the backlog one day – I'm sure that the markdown preview is not the only feature that can benefit!
These days there are very few bits that a bit worse in VSCode than in Atom, especially after a recent introduction of multi-project workspaces! Just a couple of more steps including this one and VSCode will leave Atom behind the Pareto frontier! 👍 😄
I noticed that having markdown preview extensions such as mermaid or graphviz make the scrolling a bit unpredictable. I think this something to take into account if there's rework on markdown preview scroll.
Activity
eaglexiang commentedon Feb 7, 2017
I checked the settings where scrollEditorWithPreview is true, but no sync works.
vladamx commentedon Feb 8, 2017
Sync seems to only work in workspace mode.
You need to open folder first.
It won't work when it is context free.
mjbvz commentedon Feb 9, 2017
Eagle Xiang (@eaglexiang) and Vladimir Milojevic (@vladamx), this is unrelated to what this issue is tracking.
A bug prevented 1.9's markdown synchronization from working in some cases due to a drive letter casing issue on Windows #20064. This should be fixed in insiders and 1.9.1. If you still see problems after updating, please open a new issue and I'll take a look.
eaglexiang commentedon Feb 9, 2017
I tried to use workspace settings instead of default settings, the sync did worked. However, I guess users would be happy if sync from editor to preview could work like from preview to editor. I mean scroll sync but not selection sync. Anyway, Thank you very much! : )
kachkaev commentedon Feb 12, 2018
How difficult would it be to implement this? I can try submitting a PR after a hint if the solution does not require massive platform changes.
Have been working in VSCode since the last week after switching from Atom. Still can't get used to the fact that the preview does not follow the scrolling of the markdown source – this works pretty smoothly in Atom. I know I can click anywhere in the source and the preview will follow the cursor. However, that's pretty far from an ideal UX.
mjbvz commentedon Feb 12, 2018
Alexander Kachkaev (@kachkaev) I don't think we can't fix this until we have an API the lets an extension know the current editor viewport
kachkaev commentedon Feb 12, 2018
Thanks Matt Bierner (@mjbvz) for clarifying that, understood. It'll be awesome to see this moved out of the backlog one day – I'm sure that the markdown preview is not the only feature that can benefit!
These days there are very few bits that a bit worse in VSCode than in Atom, especially after a recent introduction of multi-project workspaces! Just a couple of more steps including this one and VSCode will leave Atom behind the Pareto frontier! 👍 😄
sandorfr commentedon Feb 15, 2018
I noticed that having markdown preview extensions such as mermaid or graphviz make the scrolling a bit unpredictable. I think this something to take into account if there's rework on markdown preview scroll.
Scroll sync markdown editor with markdown preview (#44454)
Scroll sync markdown editor with markdown preview (microsoft#44454)