How do I stop Visual Studio from automatically ins

2019-01-22 17:28发布

I'm tearing my hair out with this one. If I start a block comment /* in VS.NET 2005+ then carriage return, Visual Studio insists that I have another asterisk *. I know there's an option to turn this off but I just can't find it. Anyone know how to turn this feature off?

4条回答
贼婆χ
2楼-- · 2019-01-22 18:02

Tools->Options.

Uncheck Text Editor > C# > Advanced > Generate XML documentation comments for ///

查看更多
地球回转人心会变
3楼-- · 2019-01-22 18:04

Visual Studio 2015 Update 2 has (finally) addressed this problem!

A new option as been added to Tools > Options > Text Editor > C# > Advanced named Insert * at the start of new lines when writing /* */ comments.

Disabling this option prevents the editor from automatically prefixing block comments with asterisks. It only took 7.5 years and 4 major releases :)

enter image description here

查看更多
Root(大扎)
4楼-- · 2019-01-22 18:14

Try this:

#if false

    whatever you want here
    and here

#endif
查看更多
SAY GOODBYE
5楼-- · 2019-01-22 18:15

This post addresses your question. The gist of it is:

Text Editor > C# > Advanced > Generate XML documentation comments for ///
查看更多
登录 后发表回答