Author Topic: How to center editor around cursor?  (Read 432 times)

Offline konjina

  • Multiple posting newcomer
  • *
  • Posts: 18
How to center editor around cursor?
« on: March 15, 2018, 01:02:13 am »
Is this possible in CB?

Maybe as a keyboard shortcut?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11284
    • Travis build status
Re: How to center editor around cursor?
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline konjina

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: How to center editor around cursor?
« Reply #2 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11284
    • Travis build status
Re: How to center editor around cursor?
« Reply #3 on: March 15, 2018, 01:31:29 am »
Not possible at the moment, but not something hard to do, so patches welcome.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline konjina

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: How to center editor around cursor?
« Reply #4 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.