Skip to content

Commit

Permalink
Update vscode-specific settings
Browse files Browse the repository at this point in the history
Add one recommended extension, and specify auto-formatters
  • Loading branch information
wil93 committed Sep 14, 2024
1 parent b77c87b commit f0d969b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"recommendations": [
// Auto-format Python code with Ruff linter
"charliermarsh.ruff",
// To apply settings from .editorconfig file
"editorconfig.editorconfig",
// Python intellisense support
"ms-python.python",
"ms-python.vscode-pylance"
// Python language server and type checker
"ms-python.vscode-pylance",
]
}
}
22 changes: 21 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
{
"python.analysis.typeCheckingMode": "basic"
"python.analysis.typeCheckingMode": "basic",
"files.insertFinalNewline": true,
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modifications",
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features",
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features",
},
"[css]": {
"editor.defaultFormatter": "vscode.css-language-features",
},
"[html]": {
// Doesn't work properly with template files, for example with things
// like {{ url("page") }} becoming {{ url(" page") }}
"editor.formatOnSave": false,
},
}

0 comments on commit f0d969b

Please sign in to comment.