python There is no formatter for 'python' files installed.
Is the python formatting broken in VS Code?
Python Formatter
Which code formatter do you use?
Can VS Code format Python code automatically when I save my file?
Which Python formatter is easiest for beginners?
What if my formatter conflicts with my linter or code style guidelines?
Videos
Install the below python packages for Python Code Format supporting in Windows
pip install autopep8
pip install pylint
Once you have successfully installed the packages, Open the code in vs code -> Press Ctrl + A and Ctrl + K, it will format the code.
autopep8 is listed as a requirement. On mac, using brew, you can install it as follows:
brew install autopep8
I am learning python from YouTube. And the Teacher was writing program in VS code. He did two things that didn't happen in my VS code.
Indentation correction. He told that if you give indentation before any variable it will show red. But if you Save it VS code/Pylance will auto correct it.
Imported modules and Libraries will move to the top after saving.
In my case none of the things happened. I have turned every setting on and updated the json file and yet nothing happens. I have also applied settings to all profiles and yet nothing.