DEV Community

Konstantinos Blatsoukas
Konstantinos Blatsoukas

Posted on

Vscode black formatter

Assumptions:

  1. CTRL + SHIFT + p (opens the command pallet)
  2. type settings.json (opens user settings)
  3. 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"]
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)