开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜