In Visual Studio, is there a way to word-wrap ONLY comments?

前端 未结 7 2239
灰色年华
灰色年华 2021-02-18 16:43

I\'ve looked, but it doesn\'t look like you can apply specific formatting to just comments.

7条回答
  •  温柔的废话
    2021-02-18 17:00

    It may not answer the question directly, but, instead of:

    //Writing a really really long comment on one line that should probably be broken up into multiple lines anyhow
    

    Why don't you:

    //Break your comments up into multiple lines so that
    //you don't need to worry about them wrapping?
    

    Also, I don't like long lines of code - break them up across multiple lines so it's easier to read. All a matter of preference I know, but if you have to scroll horizontally to see all the code, it's a good sign it needs formatting better IMO.

提交回复
热议问题