yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.9k stars 322 forks source link

Feature request: autoscroll in preview shows the new typing #1362

Open Bumblebee00 opened 9 months ago

Bumblebee00 commented 9 months ago

https://github.com/yzhang-gh/vscode-markdown/assets/54026028/53c3da52-e3b1-4102-91fa-d7d51929917b

Proposal

When I press command shift v to show a preview of the file, and I put the preview side by side with the markdown file, if the two windows are of the same length, everything is fine, but if the window containing the markdown preview is smaller, it will be centred in the center of the markdown file on the left, but that is not where I am typing. So when I type I don't see the part I need to see. Would be cool for the "auto scroll" to show the area I am typing in.

I hope I explained myself :) would appreciate a lot and shouldn't be a hard thing. thanks :)))

yzhang-gh commented 9 months ago

Thanks for the feedback. However, the synchronization is provided by VS Code itself (see https://code.visualstudio.com/docs/languages/markdown#_editor-and-preview-synchronization). I guess there already be similar issue opened in the vscode repository. You can check it out.