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)