In a bash script, when you type if [ cond ] and press Enter, Sublime 3 (build 3126) puts the cursor on the next line one level deeper than the if. As you continue typing then the cursor does not indent back. If you manually indent back before typing then then the editor will indent back after you type else or fi (which will make else or fi appear one level higher than the corresponding if). It will also not add one level of indentation after you type then.
So basically, you get this kind of code if you don’t manually readjust indentation:
if [ cond ]
then
echo True
else
echo False
fi
While I would like the code automatically look like this:
if [ cond ]
then
echo True
else
echo False
fi
