Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable the automatic asterisk in Visual Studio 2010 when adding a multi-line comment in C++?

I've seen many people complain about Visual Studio automatically adding an asterisk in multi-line comments for C#. My question is: How do I enable this behaviour for C++?

Example:

/**
 * I want
 * my comments
 * to look like this
 */

/**
But,
they look like this
*/

Thanks!

like image 610
Julian Avatar asked May 03 '12 19:05

Julian


Video Answer


1 Answers

I noticed in Visual Studio 2019 that if you place your text cursor just after the first asterisk in a block comment and hit enter it will automatically put an asterisk on the next line.

Step 1) Place text cursor to the right of the first asterisk in a block comment separated by a newline.

step 1

Step 2) Hit enter and Visual Studio 2019 will automatically place a asterisk on the next line.

step 2

like image 128
Terry Avatar answered Oct 17 '22 14:10

Terry