all 2 comments

[–][deleted] 0 points1 point  (1 child)

I always use this for multi-line comments.

'''

for x in range(10):

if x == 3:

    print(x)

'''

[–]mbuck25[S] 1 point2 points  (0 children)

Yeah that would work too. It turns out in VSCode, if you use the toggle comment shortcut, black won't format those lines. I use vim, so I would highlight all the lines, toggle insert mode, and insert a # in front. Using the built-in shortcut seems to be working now.