vscode python format

  1. 下载插件 Black Formatter
  2. 配置 .vscode/settings.json
    '''
    {
    "python-envs.defaultEnvManager": "ms-python.python:conda",
    "python-envs.defaultPackageManager": "ms-python.python:conda",
    "python-envs.pythonProjects": [],
    "black-formatter.args": [
    "--line-length", "150"
    ]
    }
    '''
  3. vim GG=G
posted @ 2025-10-16 10:22  恰逢其时40  阅读(12)  评论(0)    收藏  举报