Skip to content

Inheritance of XML documentation comments and support <inheritdoc/> tag #517

Open

Description

@NIA

A feature request: understanding <inheritdoc/> tag. Documentation generators like Sandcastle support this (more info in this VS UserVoice thread and this SO answer), and recently ReSharper/Rider also added such feature and understand this tag, making quick documentation (Ctrl+Q) inheritable. See the announcement.
image
It is worth noting that ReSharper/Rider inherits documentation by default, even when <inheritdoc/> is not specified.

Besides quick documentation popup, when used on method with a cref= attribute, this also makes it easy to quickly navigate to same method in the super class with mouse, becuase it behaves exatcly as the cref= attribute of <see/> and <seealso/> tags: clicking on it navigates to that symbol
image

Not a critical, but would be nice to have. Currently Consulo shows a warning and does not inherit documentation.
image

Activity

  1. self-assigned this
    on Feb 6, 2018
  2. VISTALL commented on Feb 6, 2018

    @VISTALL
    Member

    Hello. I'm not sure about this tag. For me - it's a hack, which C# compiler is not support, and used only inside IDE

    Thanks

  3. VISTALL commented on Feb 6, 2018

    @VISTALL
    Member

    For example - there no documentation about cref attribute, idk about other attributes

  4. NIA commented on Feb 6, 2018

    @NIA
    Author

    @VISTALL C# compiler does not support any of tags at all 😉 He does not know anything about them and just throws them away like other comments. All tags, including common ones like <see>, <param> and others means anything only for IDEs and for documentation generators like Sandcastle (FIY Microsoft suggests Sandcastle in MSDN, so it is not something underground).

    Documentation for ` in Sandcastle help is here: http://ewsoftware.github.io/XMLCommentsGuide/html/86453FFB-B978-4A2A-9EB5-70E118CA8073.htm

  5. NIA commented on Feb 6, 2018

    @NIA
    Author

    Also in the comment to the SO answer I mentioned above someone mentions that Visual Studio 2017 inherits documentation by default just like R#, so even if we forget about <inheritdoc/>, the inheritance of docs by default can be considered as consensus – would be great to see at least this 😃 I reworded the title of issue to make it clearer

  6. changed the title [-]Support <inheritdoc/> tag in XML documentation comments[/-] [+]Inheritance of XML documentation comments and support <inheritdoc/> tag[/+] on Feb 6, 2018
  7. VISTALL commented on Feb 6, 2018

    @VISTALL
    Member

    the inheritance of docs by default can be considered as consensus – would be great to see at least this 😃

    This is i like more than unknown(by ms) documentation tag.

  8. added a commit that references this issue on Feb 6, 2018
  9. VISTALL commented on Feb 6, 2018

    @VISTALL
    Member

    Added support for

    the inheritance of docs by default can be considered as consensus – would be great to see at least this 😃

    in nightly (build progress here https://ci.consulo.io/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions