Lawrence Pond

Lawrence Pond

  • NA
  • 164
  • 0

Customize XML comments

Feb 5 2014 10:28 PM
In Visual Studio when you position your cursor above a function or property and then type /// three slashes you get something like this :


///<summary>
/// 
/// </summary>
/// <param name="sender"> </param>
/// <param name="e"> </param>

protected void txt_search_OnTextChanged(object sender, EventArgs e)
{
...
}

I would like to see the template modified to emit the following xml like this when I type ///.
//------------------------------------------------------------
///<summary>
///  
/// </summary>
/// <param name="sender"> </param>
/// <param name="e"> </param>
//------------------------------------------------------------
protected void txt_search_OnTextChanged(object sender, EventArgs e)
{
...
}

I am using visual studio 2012 I have found a couple of articles on this but they do not work

Most of the proposed solutions work for VB but unfortuanately not for C#. I need this to work in C#.

Answers (1)