我正在尝试将python格式化程序设置为autopep8。它安装正确,但在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",
},
我已经改变了所有的设置。但是我不知道该为autopep8放什么
"[python]": {
"editor.defaultFormatter": "ms-python.python",
},
or
"[python]": {
"editor.defaultFormatter": "autopep8",
},
此外,控制托盘中不提供autopep8
谢谢 道森
这是为了配置
在settings.json中
您可以这样设置以应用autopep8格式:
Related official docs
相关问题 更多 >
编程相关推荐