-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add one recommended extension, and specify auto-formatters
- Loading branch information
Showing
2 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
} |