How to automate linue comments in .NET?

I would like to have one command to automatically highlight XML style comments in .NET.

Example:

/// <summary> /// This comment line should be /// on one line, and other lines in this <summary> block should be wordwrapped. /// </summary> 

I would not mind buying some of the commercial Visual Studio plugins if they are capable of doing this.

+6
source share
3 answers

I wrote an application for Visual Studio, AtomineerUtils Pro Documentation , in which both regular comments and documentation comments (in XML, Doxygen, Qt, and JavaDoc formats) will be updated and transferred. (This is not free, but it is very inexpensive and there is a 30-day free trial)

It tries to intelligently save important newlines - text such as indentation, bullet lists, blank lines or double space at the end of a line (among other things) will be used as hints for the wrapping mechanism to make sure your formatting is not lost.

+3
source

Try the trial version of ReSharper , it states that it formats XML Doc Comments (Go here and find comments on XML documents for more information) and tends to be very customizable.

If this does not work, the closest thing I could find was on CodeProject , it is for Visual Studio 2003; however, it is open source, so you can get it to work without an expensive third-party plugin.

+6
source

Add <para /> in your comments

0
source

Source: https://habr.com/ru/post/898479/


All Articles