mtk
mtk

Reputation: 13709

eclipse - put current line to top of screen/editor window?

How to put current line at the top of screen/editor window/viewport? I looking for something exactly similar to that is achieved in vim using Shift + H or z<return>.

Do anyone know about such a config? It would be a great navigating tip.

Upvotes: 0

Views: 287

Answers (1)

greg-449
greg-449

Reputation: 111142

You can use the 'Recenter' command to do this. Running this command cycles through moving the cursor line to the center line, then the top line, then the bottom line.

By default this command is not bound to a key so you need to open Preferences > General > Keys. Find Recenter and add a key binding.

Upvotes: 3

Related Questions