kaiwood / vscode-center-editor-window

Centers your editor window at the current cursor position
https://marketplace.visualstudio.com/items?itemName=kaiwood.center-editor-window
MIT License
23 stars 4 forks source link

Typewriter function #1

Open shixuguo opened 7 years ago

shixuguo commented 7 years ago

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?

kaiwood commented 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)

soanvig commented 5 years ago

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.