Auto generate function documentation in Visual Studio

后端 未结 8 1848
醉梦人生
醉梦人生 2020-12-13 01:43

I was wondering if there is a way (hopefully keyboard shortcut) to create auto generate function headers in visual studio.

Example:

Private Function          


        
8条回答
  •  孤城傲影
    2020-12-13 01:55

    Normally, Visual Studio creates it automatically if you add three single comment-markers above the thing you like to comment (method, class).

    In C# this would be ///.

    If Visual Studio doesn't do this, you can enable it in

    Options->Text Editor->C#->Advanced

    and check

    Generate XML documentation comments for ///

提交回复
热议问题