我的头发都快被这玩意儿扯出来了。如果我在VS.NET 2005+中开始一个块注释/*,然后回车,Visual Studio会坚持我有另一个星号*。我知道有一个关闭它的选项,但我就是找不到它。有人知道如何关闭这个功能吗?
发布于 2008-09-09 03:51:15
This post回答了您的问题。它的主旨是:
Text Editor > C# > Advanced > Generate XML documentation comments for ///发布于 2016-03-31 04:29:36
Visual Studio 2015 Update 2 (终于)解决了这个问题!
在Tools > Options > Text Editor > C# > Advanced中添加了一个名为Insert * at the start of new lines when writing /* */ comments的新选项。
禁用此选项可防止编辑器自动为块注释添加星号前缀。它只用了7.5年,发布了4个主要版本:)

发布于 2011-11-23 08:35:01
试试这个:
#if false
whatever you want here
and here
#endifhttps://stackoverflow.com/questions/51180
复制相似问题