skip to Main Content

I installed Visual Studio Code v1.81.1 but do not see an option called "PYTHON FORMAT PROVIDER" like many course videos said should be in the settings.
I believe this may be why my code indentation does not get corrected by autopep8.
So where do I find this option or please reply why the improper indentation does not get corrected.

I tested with incorrect indentation and autopep8 didn’t correct my test code.
I do see that the Visual Studio Code says I am using autocorrect8 in other parameters but am concerned why the "Python Formatting Provider" parameter is not there.

Thanks,
Dan

2

Answers


  1. Your question is not clear though I’m assuming you’ve not yet installed the python extension in VScode. I suggest you go to the extensions tab placed in the left-pane of VScode and install the python, pylance and the python indent by Kevin Rose. These extensions should solve your problem and make your journey a lot smoother. Happy coding!

    Login or Signup to reply.
  2. Well You could just install Python in VScode extension, it will automatically install pylance along with it, just to get you started. if you want more on formatting your code.

    Install Black Formatter by Microsoft in VScode extension or use pip ( preferred method ) https://pypi.org/project/black/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search