Sublime Forum

Auto indent python + sublime 3

#1

Hi,

I’m beginning to use sublime text 3 with python code.

I want a command that auto-indenting in python code just like "CTRL + I " in QT

I found this tip:

but it seems not work correctly with python code

would you mind helping me

thank you

0 Likes

#2

Python code auto indents as you type (unless you have disabled it) in ST, so there shouldn’t be any need to manually re-indent it…

someone recently reported that using the reindent command on Python moves their class and function definitions to where they don’t want them, which is kinda unavoidable at the moment, because the auto-indentation rules and the reindentation rules are based on the same logic:

1 Like