VS Code Python autopep8 does not honor 2 spaces hanging indentation
Adding –indent-size=2 –ignore=E121 worked for me.
Adding –indent-size=2 –ignore=E121 worked for me.
I figured out how to do this. Add this line to your settings: “python.linting.pep8Args”: [“–max-line-length=100”],
Open settings Search for autopep8. You should see the following results: Click on “Edit in settings.json” under the first option Add the following argument to the User Settings JSON file: “python.formatting.autopep8Args”: [“–ignore”, “E402″] This tells autopep8 to ignore error 402 which is: “module level import not at top of file” (here’s the list of errors … Read more