Reputation: 1878
I want to keep the caret on the current line, but move the viewport up or down in the code, allowing me to stay on the current line but see a few more lines above the top of screen.
Upvotes: 1
Views: 113
Reputation: 165178
You need to use Scroll Up
and Scroll Down
actions. On Windows, using Default keymap, they will be linked to Ctrl + Up and Ctrl + Down accordingly.
On Linux/Mac .. or using any other keymap -- just look for those actions in Settings/Preferences | Keyamp
-- use search field and type scroll
to filter the list:
Upvotes: 2