Is there a way to automatically set the indentation in python?

Hi all!
Tell me, is there a service, and maybe even a method for the automatic alignment of code?
Very long suffered with these indents. Perhaps this is the most unpleasant language
September 26th 19 at 11:27
5 answers
September 26th 19 at 11:29
Solution
Perhaps autopep8 will do what you want.
I will try, thanks - johann commented on September 26th 19 at 11:32
September 26th 19 at 11:31
Take PyCharm, and I think that generally in any normal editor has auto-indent.
That's what I had in mind. - johann commented on September 26th 19 at 11:34
Thanks, I already use Sublime Text'om - wendy.Veum98 commented on September 26th 19 at 11:37
can you PEP8 Autoformat is needed? He gives the code to a "standard" form. But I do not understand what you margins are not satisfied, can you imagine not the language chosen to solve the problem? - johann commented on September 26th 19 at 11:40
I just play, so to speak. Chose python, so all it hurts were praised, and I liked it too - tristian_DAmore commented on September 26th 19 at 11:43
September 26th 19 at 11:33
It seems the IDE provides such a feature.
September 26th 19 at 11:35
PyCharm or PyScripter can help.
September 26th 19 at 11:37
And there is nothing in the Notepad to write :) Use the IDE or at least Notepad++
Duck, I write in sublime, yeah - johann commented on September 26th 19 at 11:40

Find more questions by tags Python