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

  4. vscode 代理
    /Users/shikejing/Library/Application Support/Code/User/settings.json
    '''
    "remote.SSH.httpProxy": "http://agent.baidu.com:8891",
    "remote.SSH.httpsProxy": "http://agent.baidu.com:8891",
    "http.useLocalProxyConfiguration": true,
    "http.proxy": "http://agent.baidu.com:8891",
    "https.proxy": "http://agent.baidu.com:8891",
    '''

posted @ 2025-10-16 10:22  恰逢其时40  阅读(46)  评论(0)    收藏  举报