I use the Python formatting toolkit "autopep8
", and its effects are as follows:
"python.formatting.provider": "autopep8",
It is recommended that you check whether there are related settings in the file "settings.json" that affect the use of formatting.
The "autopep8" in VSCode is used as the formatting code of the Python formatting toolkit. We can use it by installing it using pip. Please disable related formatting extensions to avoid interference.
More references: Formatting in VSCode.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…