Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add auto document for method & class & field in C# with ReSharper 5?

Tags:

resharper

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/class?

like image 422
q0987 Avatar asked Dec 29 '25 02:12

q0987


1 Answers

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();
    }
like image 169
b3n Avatar answered Jan 01 '26 23:01

b3n



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!