Open1

vscode周辺の設定

らららゴリラらららゴリラ

pythonでの.vscode/settings.json

{
    "files.autoSave": "onFocusChange",
    "editor.renderWhitespace": "boundary",

    // .venv内のpythonを使う
    "[python]": {
        // フォーマッターをblackにする
        "editor.defaultFormatter": "ms-python.black-formatter",
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": true
        },
        "editor.insertSpaces": true,
        "editor.tabSize": 4,

    },
    "black-formatter.args": [
        "--line-length", "119"
    ],
    "flake8.args": [
        "--max-line-length=119"
    ],
    "isort.args": ["--profile", "black"],
    // Docstringの設定をGoogleにする
    "autoDocstring.docstringFormat": "google",
    "workbench.colorTheme": "Default Dark+",
}