Open shixuguo opened 7 years ago
@shixuguo I'm not aware of any plugin that does this currently, but I'll dig into the problem if I find the time over the weekend. Not sure yet if this should be added to this plugin or a new one should be created, but sounds like a fun exercise.
https://stackoverflow.com/questions/41082702/how-to-center-the-editor-window-back-on-the-cursor-in-vscode/41095414?noredirect=1#comment80962737_41095414a for reference of a similar request (maybe the same, given the time window)
There is
https://marketplace.visualstudio.com/items?itemName=andyhuzhill.typewriterscrollmode
plugin, but it works only with .md and plain text files (wtf by the way).
I think it would be great addition to your plugin.
Did you ever use Zen Mode in Atom? In the settings of Zen mode ,there is 'Typewriter', which keeps the cursor vertically centered where possible.
https://atom.io/packages/Zen or https://github.com/defunkt/Zen
Is that easy to implemented in vscode? Or any other pulg-in has implemented that function?