代码之家  ›  专栏  ›  技术社区  ›  tgeros

如何阻止Visual Studio在块注释期间自动插入星号?

  •  36
  • tgeros  · 技术社区  · 17 年前

    我要用这个把我的头发扯下来。如果我开始一个块注释 /* * . 我知道有一个选项可以关闭它,但我就是找不到。有人知道如何关闭此功能吗?

    4 回复  |  直到 14 年前
        1
  •  24
  •   shsteimer    17 年前

    This post 回答你的问题。其要点是:

    Text Editor > C# > Advanced > Generate XML documentation comments for ///
    
        2
  •  12
  •   usr    8 年前

    Visual Studio 2015 Update 2 已经(最终)解决了这个问题!

    Tools > Options > Text Editor > C# > Advanced 命名 Insert * at the start of new lines when writing /* */ comments .

    enter image description here

        3
  •  10
  •   wozza    14 年前

    试试这个:

    #if false
    
        whatever you want here
        and here
    
    #endif
    
        4
  •  0
  •   dan gibson    16 年前

    取消选中文本编辑器>C#>高级>为生成XML文档注释///