I am trying to setup my python formatter to autopep8. It is installed properly, however it never as a formatting option in VSCode.
"python.formatting.autopep8Path": "C:\\Users\\DawsonSchaffer\\AppData\\Roaming\\Python\\Python39\\Scripts\\autopep8.exe",
"python.formatting.autopep8Args": [
"--max-line-length",
"160",
"--aggressive",
"--aggressive",
"--in-place"
],
"[python]": {
"editor.defaultFormatter": "autopep8",
},
I have changed all the setting. However I'm not sure what to put for autopep8.
"[python]": {
"editor.defaultFormatter": "ms-python.python",
},
or
"[python]": {
"editor.defaultFormatter": "autopep8",
},
Also autopep8 is not available in control pallet.
Thanks Dawson


This is to configure the
in the settings.json.
You can set like this to apply autopep8 formatting:
Related official docs.