How to add auto document for method & class & field in C# with ReSharper 5?
Visual Tomato AssistX provides a menu to automatically add method/class documents for the C++ functions.
Does ReSharper provide similar functions that I can use to add document for method/cl开发者_运维知识库ass?
I don't think Resharper does this for methods but if you want to insert file headers have a look at this post. If you want to add a method comment you can just place your cursor on an empty line above one of your method and insert 3 slashes which will insert a comment block for you to fill out.
public ActionResult Index(int page)
{
return View();
}
with /// inserted:
/// <summary>
///
/// </summary>
/// <param name="page"></param>
/// <returns></returns>
public ActionResult Index(int page)
{
return View();
}
I'm using GhostDoc for that.
精彩评论