How to jump/move the cursor Up or Down by several (4-5) lines in Intellij
已回答
Hello you wonderful people,
I have a weak arm, that quickly gets tired when repeatedly having to move my hand to the mouse wheel for rapid up/down scrolling. Is there a way (shortcut perhaps) for making the cursor jump up/down by several lines, when i press the up/down arrow keys?
Thank you for reading.
Regards
Jude
请先登录再写评论。
You can record a macro of several up/down actions and assign it to some shortcut.
A macro suggested above doesn't work like expected. Firstly the delay is quite noticeable comparing to a regular "Move Down and Scroll" action. Secondly, if you bind it to "Alt + key" and hold this shortcut, you'll have your top menu items triggered which leads to weird UI behavior.
Is there a way to use something like "Move Down and Scroll {n} lines"? I'm not strong at writing plugins, but can it be achieved by one?
You could try to experiment with https://github.com/dkandalov/live-plugin or https://gist.github.com/gregsh/b7ef2e4ebbc4c4c11ee9 to automate it. Yes, it should be possible with a plug-in.
https://plugins.jetbrains.com/plugin/10668-linejumper