There’s a frustrating quirk with Python now (not sure, but don’t remember seeing it before), probably with other languages too:
You start with something like this (| = cursor):
class Foo:
def foo(self):
pass|
If you press enter, cursor moves to the next line aligned at the start of “pass”, which is to be expected. Now suppose you want to write another function: you press backspace to move the cursor 1 indent back, press enter and it jumps back to “pass” level again:
[code]class Foo:
def foo(self):
pass
|
[/code]
While you could teach yourself to press enter first and then de-indent, the editor should probably keep in mind that I explicitly decreased the indentation level (by pressing backspace) and not just blindly use the source code.