Visual Studio 2008 Automatic line breaks in comments

Posted by Pete Michaud on Stack Overflow See other posts from Stack Overflow or by Pete Michaud
Published on 2009-07-22T15:52:26Z Indexed on 2010/05/13 16:14 UTC
Read the original article Hit count: 328

Filed under:

When I write a comment, it's often a paragraph or a few lines that explains clearly what a bit of code is doing and why it's doing that.

What I'd like is if I could start a comment, and have the editor automatically insert a line break and continue the comment to the nest line when I reach, say, 80 characters long.

So I'd type:

// Lorem ipsum dolor sit amet, consectetur adipiscing elit. < here the editor breaks automatically and continues onto the next line: >

// Etiam congue quam eget leo dignissim tincidunt.

© Stack Overflow or respective owner

Related posts about visual-studio-2008