# Ruff Settings in VS Code (September 18, 2024)

为了 fix on save

```json
{
    "[toml]": {
        "editor.formatOnSave": false
    },
    "ruff.lint.select": [
        "I"
    ],
    "[python]": {
        "editor.defaultFormatter": "charliermarsh.ruff",
        "editor.codeActionsOnSave": {
            "source.fixAll.ruff": "always"
        }
    }
}
```

可以用作 py 项目的 setup template