I have a class that i am inheriting from and the methods i override should have the same comments as the base. Does resharper have an option to copy them?
In addition to the above mentioned context action, which I find fairly tedious to apply for each inherited member, you can also configure ReSharper to "pull down" comments by default when implementing a base class or interface.
To do this, from the ReSharper main menu go to Options | Code Editing | Member Generation | Other Options
inside here you will see an option to Copy XML documentation from overridden members, if you check this option ReSharper will automatically copy all inherited documentation for you.
Since version 3.0 of ReSharper, you should have a context action available to do this, Copy comments from base. If it doesn't appear to be available, make sure it's checked in ReSharper | Options | Languages | C# | Context Actions
.
Let your overridden methods uncommented. So R# short help (Ctrl+Shift+F1) will automatically show the help of base class member.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With