+1
Ukończony
Center text around cursor on keystroke
It should be possible to set a keystroke to center the current window around the cursor. That is, the current line should go to the middle of the sublime text window (even if there are no lines after the cursor), thus enabling the user to see what comes below the window-bottom.
To see this in action, open a large text file in emacs and type CTRL+L (I think QQ)
Odpowiedź
0
Odpowiedź
Ukończony
Jon Skinner 13 lat temu
The Goto/Scroll menu has an entry for doing this.
On OS X, you may also want to enable the scroll_past_end setting
Odpowiedź
Ukończony
The Goto/Scroll menu has an entry for doing this.
On OS X, you may also want to enable the scroll_past_end setting
the command is called "show_at_center".. which doesn't match the menu, should at least have scroll in it for easy searching of the default keybindings!
+4
In at least Sublime Text 3, ctrl+k, ctrl+c will center view on cursor ("show_at_center") exactly as emacs ctrl+L does.
On Emacs there is also C-0 C-l
or C-u 0 C-l
to center the screen at the top, so that the line of interest is the first one on top. Is there something like this for Sublime Text?
+1
Release note at http://www.sublimetext.com/2:
Build 2027 Release Date: 19 February 2011
Build 2027 Release Date: 19 February 2011
Added command show_at_center, which scrolls the view to center on the selection. This is bound to Ctrl+K, Ctrl+C on Windows and Linux, or Ctrl+L on OSX.
I'm using a 2.0.2 build 2221 on Mac and Ctrl+L works well for me.Customer support service by UserEcho