3

Does it exist on Visual Studio 2019 or ReSharper a way to automatically add ///<inheritdoc/> when implementing missing members from an interface/base class?

enter image description here enter image description here

I checked quite a bit on Google but couldn't find anything.

Alvin Sartor
  • 2,249
  • 4
  • 20
  • 36
  • 1
    Have you tried this https://www.inheritdoc.io/ ? – Pavel Anikhouski Jan 13 '20 at 14:18
  • I do not think there is one without a 3rd party also take a look here. -> https://stackoverflow.com/questions/342964/comment-inheritance-for-c-sharp-actually-any-language – panoskarajohn Jan 13 '20 at 14:29
  • @PavelAnikhouski inheritdoc.io only modifies the documentation XML. From the FAQs: "Does InheritDoc modify my source code? No, InheritDoc modifies the XML documentation files associated with your assembly instead of modifying the source code" – Alvin Sartor Jan 13 '20 at 15:02
  • 1
    @panoskarajohn thanks, I already found that question and I am a happy GhostDoc user. Unfortunately it does not do what I am looking for. – Alvin Sartor Jan 13 '20 at 15:03

1 Answers1

3

Have you tried this option in ReSharper Options: ReSharper | Options | Code Editing | Members Generation | Generate documentation | Add <inheritdoc /> for overridden members? enter image description here

Alexander Kurakin
  • 13,373
  • 2
  • 33
  • 29