c++formattingvisual-studio-2019block-comments

How do I stop Visual Studio 2019 from automatically inserting asterisk during a block comment in C++?


When using Visual Studio 2019, when I hit enter within a block comment in a C++ file it adds a leading * . I've found a solution to this problem for C# at How do I stop Visual Studio from automatically inserting asterisk during a block comment? but the same option is not present for C++ and changing the C# option doesn't disable the feature for C++. This does not occur with Visual Studio 2017.

So when I have:

/*<cursor here>
*/

and I hit enter I want it to look like:

/*
<cursor here>
*/

but instead I get

/*
* <cursor here>
*/

Is there an option somewhere that disables this behavior or another way to do so?


Solution

  • Done.