troseman
troseman

Reputation: 1878

Is there a way in PhpStorm to scroll viewport without moving caret?

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

Answers (1)

LazyOne
LazyOne

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:

enter image description here

Upvotes: 2

Related Questions