Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove patterns for decreasing next indent level #212
This PR reverts the functional changes of #204. Unfortunately, there is no way (yet) to tell if we're in an
if True: # something return # we are now at this indent level because of `decreaseNextIndentPattern` else: # but typing `else:` will trigger another dedent from `decreaseIndentPattern`
I would argue that that is worse than having to shift-tab after a return that is not in an if statement.
Oct 17, 2017
Ok, well as you can imagine I'm a -1 on this. Both versions give you incorrect indentation, the difference is the old-old version (that this reverts to) is incorrect on every end-of-block-like statements (i.e.
Yeah. However, and maybe this is personal taste, I feel that having the indentation consistently not change is somewhat more expected than having the indentation unexpectedly change. For the former I can get used to shift-tabbing after every end statement, whereas for the latter there's more muscle memory involved, as well as some cursor movement (as shift-tab will work anywhere, but tabbing will only work at the beginning of the line).