Sublime Forum

How to position file window with respect to current cursor position?

#1

Hello.

Here is what I’d like to have. Suppose you have a long file, you type some code, more code and so on …

Some time later your cursor at the bottom of the screen. Is it possible to have some command that position current screen in such way that cursor to be in the middle on a screen ?

Thanks in advance.

0 Likes

#2

CTRL+K, CTRL+C

123456789
Body is invalid; try to be a little more descriptive

1 Like

#3

Thank you, it woks. Can you tell me name of this command because I can find it in default keymap ?

0 Likes

#4

In the default key binding:

{ "keys": ["ctrl+k", "ctrl+c"], "command": "show_at_center" },
1 Like

#5

Thank you :slightly_smiling:

0 Likes

#6

Optionally refer to your favorite auto-scroll package.

0 Likes