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

c++, comments, ide, styles

Solution

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 2) Hit enter and Visual Studio 2019 will automatically place a asterisk on the next line.

Problem

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!

Original source