Keep caret in centre of editor view ("focus mode")
Answered
Is there a setting or plugin/extension that I can use to keep the caret in the centre of the editor?
I know there is a keymap (Ctrl + M) to move the caret to centre, I just looking for one that does it when using the arrow keys as well.
Thanks in advance!
Example extension for Visual Studio Code: https://marketplace.visualstudio.com/items?itemName=tickleforce.scrolloff

Please sign in to leave a comment.
There's no such plugin or possibility unfortunately, but feel free to create a feature request on our tracker: https://youtrack.jetbrains.com/newIssue , or develop your own plugin: https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started.html .
There is already a feature request you can vote for https://youtrack.jetbrains.com/issue/IDEA-128039.
You can already do this with IdeaVim. Just add `set scrolloff=XX` to your $HOME/.ideavimrc
You may try the Adaptive Caret Scroll plugin https://plugins.jetbrains.com/plugin/22659-adaptive-caret-scroll
It supports the centered caret feature as well as scroll paddings for the top and bottom edges of the editor.