Sublime Forum

[SOLVED] show vs. show_at_center

#1

I think I may just be misunderstanding the difference between these two commands, but I am not actually seeing a difference when I use show vs show_at_center. Both of these commands center the line that I was looking for in the center of the view. Is show_at_center just referencing the horizontal axis and both always center the vertical? Any help would be greatly appreciated.

1 Like

#2

view.show only scrolls to the center if the point is not visible already, and it doesn’t scroll at all if it is. view.show_at_center always scrolls to the center.

0 Likes

#3

Ah thank you, that makes a lot more sense now.

0 Likes

#4

Thanks, I had the same question to you.

0 Likes