2

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?

AlainD
  • 5,413
  • 6
  • 45
  • 99
  • If the VS Text Editor options for code formatting isn't enough, you can take a look at https://www.atomineerutils.com –  Dec 08 '20 at 11:16

1 Answers1

5

Open Visual Studio options and navigate to:

Text EditorC#Advanced

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

enter image description here

DavidG
  • 113,891
  • 12
  • 217
  • 223