我用这个撕掉了我的头发.如果我/*在VS.NET 2005+中开始一个块注释然后回车,Visual Studio坚持我有另一个星号*.我知道可以选择关闭它,但我找不到它.任何人都知道如何关闭此功能?
Mic*_*ren 24
这篇文章解决了你的问题.它的要点是:
Text Editor > C# > Advanced > Generate XML documentation comments for ///
Run Code Online (Sandbox Code Playgroud)
小智 11
试试这个:
#if false
whatever you want here
and here
#endif
Run Code Online (Sandbox Code Playgroud)
Nic*_*ick 10
Visual Studio 2015 Update 2(最终)解决了这个问题!
已添加到Tools > Options > Text Editor > C# > Advanced命名的新选项Insert * at the start of new lines when writing /* */ comments.
禁用此选项可防止编辑器使用星号自动为块注释添加前缀.它只花了7.5年和4个主要版本:)
| 归档时间: |
|
| 查看次数: |
3119 次 |
| 最近记录: |