Auto indent in code blocks, like how it should be for writing code?

I hope it’s me missing it, but how come Obsidian has code blocks, but in these code blocks, when hitting enter, the cursor goes all the way to the left and I have to hit tabs to do indentation on this new line myself? Something like any modern code editors like Sublime Text, where for example, if you are writing a code function, and you hit enter, indentation is done automatically?
Like this:

def foo():
    print("The indentation on this line should be done automatically after I hit enter key from the previous line")
    return None
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.