First time here? Check out the FAQ!

block comments and Black

has anyone found a block comment style that "Plays nice" with the Black formatter? Every time I comment out a block of code while debugging, Black does nasty and inconsistent things with the indentation of that block.

This seems more like a Black issue than a Wing issue (why is it reformatting comments anyway), but I thought I'd see if anyone else in the community has solved this.

Chris Curvey's avatar
Chris Curvey
asked 2024-04-07 08:58:33 -0500
edit flag offensive 0 remove flag close merge delete


add a comment see more comments

1 Answer


The # Uniformly Indented PEP 8 Style Comment option added in Wing 10.0.3 should be compatible with the Black formatter.

Wingware Support's avatar
Wingware Support
answered 2024-04-09 09:09:56 -0500, updated 2024-04-09 09:27:59 -0500
edit flag offensive 0 remove flag delete link


add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer