2
Vote

Auto dedent else statements when it doesn't match current if

description

Type:

if True:[enter]x = 42[enter]else:[enter]

Currently else: will be indented to the if block because there's not a terminating statement on the previous line. When the user hits enter, we should automatically back it up. The undo experience should first undo the backing it up, and then undo the enter.

comments