VS Code 中 python 的控制换行

Control line wrap for python in VS Code

出于某种原因,我无法让 VS Code 禁用格式换行。我的设置包含这些条目

"python.formatting.provider": "autopep8",
"python.formatting.autopep8Args": [
    "--max-line-length=200"
],
"python.linting.pep8Args": [
    "--max-line-length=200"
]

editor.wordWrap 默认关闭。当我格式化文档时,长行 (>79) 会换行。我已经尝试了各种组合来让它工作。我什至将格式化提供程序设置为 none 也无济于事。

就好像 python 设置根本就没有被拾取一样。设置 "python.linting.enabled": false 仍然检查我的文件。

原来我的 .vscode 文件夹中有 settings.json 文件,它覆盖了我的 python 用户特定设置的设置。