Setting for formatting C-style comments for C#

Viewed 71

Writing C# in Visual Studio 2019. With the following construct:

/* My comment
*/

Set the cursor to the right of comment and press Enter. This gets converted to:

/* My comment
 *
*/

I'd prefer:

/* My comment

*/

After hunting around in Tools > Options, could not find the setting for this...where is it?

1 Answers

Open Visual Studio options and navigate to:

Text Editor ► C# ► Advanced

and uncheck Insert * at the start of new lines when writing / / comments

enter image description here

Related