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

前端 未结 7 2247
灰色年华
灰色年华 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:01

    As I have not found anything suitable so far, I use Vim. I set Open in &Vim as an external tool command, so I can just press Alt+T,V to open the current file in it. In Vim, I find the comment (press / for incremental search), select it (Shift+V selects whole line) and gq command formats the selected text. Finally, :wq and I am back in Visual Studio.

    Hopefully, some simple extension appears in future or VsVim will get this feature.

提交回复
热议问题