Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2008 Automatic line breaks in comments

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.

like image 268
Pete Michaud Avatar asked May 27 '26 12:05

Pete Michaud


1 Answers

I'm pretty late to this, but I believe if you use /// rather than // when you hit enter it automatically types another set of ///

not sure why or what specifically the /// is for vs. the // but it works as a comment none the less.

Hope this helps~

like image 97
Aaj Avatar answered Jun 02 '26 03:06

Aaj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!