VS Code setting for Python Black to automatically give arguments a new line when defining a function

98 views Asked by At

Is there a setting in VS Code that automatically puts each argument in a function definition to a new line? I am using black, and if there are enough arguments that the line length is greater than 79 characters then each argument is given a new line, but if the line length is less than 79 then the arguments stay on the same line. I would like a setting that automatically puts each argument on a new line.

What I have:

def func(arg1: str, arg2: int) -> int:

What I want:

def func(
    arg1: str,
    arg2: int
) -> int:
0

There are 0 answers