Sublime Forum

Viewport left align with indent

#1

How can I change the viewport when I press Enter and go to an indented line. For example, if I’m on an indented line and press Enter, the viewport scrolls so that the new line (indented, because of auto indent) is completely left aligned. It is difficult to see the cursor and disorienting because I can’t see the containing code (the next indent level up). I would like it to show at least one indentation level to the left after I press Enter.

So, if the code looks like this,

if a == 1 then print(a)
, and I press Enter, I still want to be able to see the “if a == 1 then” line. But instead Sublime Text shows this,

then print(a) (cursor is here)

0 Likes

#2

I have the same issue with sublime. Did you ever solve it?

I can see how sometimes you would want to have it auto align to the indent - but it should be a feature that can be set an and off.

0 Likes