First time here? Check out the FAQ!
1

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Chris Curvey's avatar
256
Chris Curvey
asked 1 year ago

Comments

see more comments

1 Answer

0

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.2k
Wingware Support
answered 1 year ago, updated 1 year ago
link

Comments

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)