Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: konjina on March 15, 2018, 01:02:13 am

Title: How to center editor around cursor?
Post by: konjina on March 15, 2018, 01:02:13 am
Is this possible in CB?

Maybe as a keyboard shortcut?
Title: Re: How to center editor around cursor?
Post by: oBFusCATed on March 15, 2018, 01:10:54 am
You can use ctrl-up/down to move the view and not the cursor.
Also there is an option to prevent the cursor from going to the bottom or top, but I don't think there is a menu item or shortcut for it.
Title: Re: How to center editor around cursor?
Post by: konjina on March 15, 2018, 01:29:02 am
You can use ctrl-up/down to move the view and not the cursor.

Not quite what I mean.

Also there is an option to prevent the cursor from going to the bottom or top, but I don't think there is a menu item or shortcut for it.

Where is it? But it any case, that's not what I mean.

Something like this: https://raw.githubusercontent.com/kaiwood/vscode-center-editor-window/master/images/vscode-center-editor-window.gif
Title: Re: How to center editor around cursor?
Post by: oBFusCATed on March 15, 2018, 01:31:29 am
Not possible at the moment, but not something hard to do, so patches welcome.
Title: Re: How to center editor around cursor?
Post by: konjina on March 15, 2018, 01:44:01 am
Not possible at the moment, but not something hard to do, so patches welcome.

Oh, I'm afraid I'm not that good  :-X

In any case it would be really useful.