Created
July 11, 2024 03:11
-
-
Save tamsanh/8c5b26d4ea661edc0e79c462f7dba049 to your computer and use it in GitHub Desktop.
VSCode Settings JSON for black and isort using a local pyproject.toml
This file contains hidden or 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
{ | |
"[python]": { | |
"editor.defaultFormatter": "ms-python.black-formatter", | |
"editor.codeActionsOnSave": { | |
"source.organizeImports": "explicit" | |
} | |
}, | |
"isort.args": [ | |
"--profile", | |
"black", | |
"--settings-file", | |
"${workspaceFolder}/pyproject.toml" | |
], | |
"black-formatter.args": [ | |
"--config", | |
"${workspaceFolder}/pyproject.toml" | |
], | |
"black-formatter.path": ["black"], | |
"[json]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment