Whenever im coding an if statement, or a while loop and press enter it doesnt keep me inside the statement

How can I fix my code to allow me to stay within the statements without having to tab into it a bunch of times?

This currently a python bug that is being fixed:

From what I can gather, the editor has trouble figuring out where your functions end, so the indentation gets messed up. (If you hide/fold your function using the arrow, it may hide too much code, showing it is confused.)

I do not know of any workaround for this indentation bug.

1 Like