Click here to Skip to main content
15,896,430 members
Articles / Desktop Programming / Windows Forms

Comment Reflower Add-in for Visual Studio .NET

Rate me:
Please Sign up or sign in to vote.
4.92/5 (37 votes)
1 Jan 20054 min read 85.6K   733   58  
A Visual Studio .NET 2003 add-in that reflows (rewraps) text in comments to make them easier to read.
/** This is a single line C-style doxygen comment */
JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.
	/**
	 * This is a single line C-style doxygen comment indented. That is long
	 * enough that it will have to be wrapped.
	 */
/**
 * This is a multi line C-style doxygen comment. This is a multi line C-style
 * doxygen comment. This is a multi line C-style doxygen comment. This is a
 * multi line C-style doxygen comment.
 */
	/** This is a multiline doxygen comment which will be 1 line. */

JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.
 
/* This is a single line C-style comment */

JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.

int i; /* This is a single line C-style comment after code */
int i; /* This is a single line C-style comment after code that is long enough
	    * that it will have to be wrapped.
	    */

JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.

/* This is a mult line C syle comment. This is a mult line C syle comment. This
 * is a mult line C syle comment. This is a mult line C syle comment.
 */
 
JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.
 
int i; /* This is a mult line C syle comment after code. This is a mult line C
	    * syle comment after code. This is a mult line C syle comment after
	    * code. This is a mult line C syle comment after code.
	    */

JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.
	   
/********************************************************************************
 * This is a C block comment. This is a C block comment.
 ********************************************************************************/

JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.
JUNK JUNK JUNK JUNK.

	   
// Single line C++ comment.

int j = 0; // Single line C++ comment after code
int j = 0; // Single line C++ comment after code that is long enough that it
		   // will have to be weapped

// Multi line C++ comment. Multi line C++ comment. Multi line C++ comment. Multi
// line C++ comment. Multi line C++ comment. Multi line C++ comment. Multi line
// C++ comment. Multi line C++ comment. Multi line C++ comment. Multi line C++
// comment.

int j = 0; // Mutli line C++ comment after code. Mutli line C++ comment after
		   // code. This line is fat too long, and thus will involve wrapping
		   // down to the next line and forcing a new line to be written. Mutli
		   // line C++ comment after code. Mutli line C++ comment after code.
// Another comment block straight after the last with different indentation

////////////////////////////////////////////////////////////////////////////////
// Block C++ comment. Block C++ comment. Block C++ comment. Block C++ comment. 
// Block C++ comment. Block C++ comment. Block C++ comment. Block C++ comment. 
////////////////////////////////////////////////////////////////////////////////

			////////////////////////////////////////////////////////////////////////////////
			// Indented C++ block comment. 
			////////////////////////////////////////////////////////////////////////////////
				////////////////////////////////////////////////////////////////////////////////
				// Indented C++ block comment differnt indentation
				////////////////////////////////////////////////////////////////////////////////

			////////////////////////////////////////////////////////////////////////////////
			// Back to back C++ block comments 
			////////////////////////////////////////////////////////////////////////////////
			////////////////////////////////////////////////////////////////////////////////
			// Back to back C++ block comments
			////////////////////////////////////////////////////////////////////////////////

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Ian has written a lot of C++ code in his life. Some of it even does useful things.

Comments and Discussions