I want to configure autopep8 as formatter in Visual Studio Code for my Python files.
In the documentation of the VSC Extension in the settings section, it is stated, that I can configure autopep8 with the keyword autopep8.args. the example is:
"autopep8.args" = ["--config", "<file>"]
But I don’t understand the documentation. Why is there an equal sign? In the VSC settings.json
file, the configuration is in the format “key”: “value”. Therefore the supposed code doesn’t work like this.
What I have tried then is this in my settings.json
file:
"autopep8.args": [
"--config", "~/DjangoKurs/techmax/.pep8"
]
and placed a .pep8 configuration file in the corresponding folder.
But it seems that this is the wrong way to read in my configuration settings for autopep8.
How to set this up correctly?