简体   繁体   中英

Setting for formatting C-style comments for C#

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?

Open Visual Studio options and navigate to:

Text EditorC#Advanced

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

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM