Skip to content

Scroll Sync from Markdown Editor To Markdown Preview #19459

Closed

Description

@mjbvz

From #5047

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

Activity

  1. added
    feature-request
    markdown-ext
    on Jan 26, 2017
  2. eaglexiang commented on Feb 7, 2017

    @eaglexiang

    I checked the settings where scrollEditorWithPreview is true, but no sync works.

  3. vladamx commented on Feb 8, 2017

    @vladamx

    Sync seems to only work in workspace mode.

    You need to open folder first.

    It won't work when it is context free.

  4. mjbvz commented on Feb 9, 2017

    @mjbvz
    ContributorAuthor

    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.

  5. eaglexiang commented on Feb 9, 2017

    @eaglexiang

    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! : )

  6. added this to the Backlog milestone on Apr 12, 2017
  7. kachkaev commented on Feb 12, 2018

    @kachkaev

    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.

  8. mjbvz commented on Feb 12, 2018

    @mjbvz
    ContributorAuthor

    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

  9. kachkaev commented on Feb 12, 2018

    @kachkaev

    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! 👍 😄

  10. sandorfr commented on Feb 15, 2018

    @sandorfr

    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.

  11. added a commit that references this issue on Feb 27, 2018
    2279b4d
  12. locked and limited conversation to collaborators on Apr 13, 2018
  13. added a commit that references this issue on Sep 6, 2026
    5171470
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestmarkdown-exton-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions