Assumptions:
- python extension is installed on vscode python extension
- balck formatter extension is installed on vscode balck formatter extension
- CTRL + SHIFT + p (opens the command pallet)
- type settings.json (opens user settings)
- set as a default formatter the black formater and max line length to 120
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
},
"black-formatter.args": ["--line-length", "120"]
}
Top comments (0)