Code formatation

Describe your feature request
Code formatation

What problem(s) would this feature solve?
In Python, when you copy code with different indentation it would save time. In other languages, this could help create clean, readable code.

Explain what you were trying to do when you came across the problem leading to this feature request
I always like to code, but I don’t like to waste time organizing my codes.

1 Like

you can just try press ctrl s for builtin code formatting or you can go to the shell and enter:

pip install black
black main.py
2 Likes

Could also just do black . after installing it, then it will do other files in the folder as well (Or a renamed main file)

2 Likes

I don’t think that’s a good idea since that would also edit
every
single
package
file

2 Likes

Not in my experience. For me it seems to only format what’s in the current directory, or maybe it just excludes venv.

3 Likes