Show xml tag into visual studio intellisense

后端 未结 3 1534
轮回少年
轮回少年 2020-12-06 09:21

I added the xml tag to some of my methods but I can\'t see its content in IntelliSense.

Here is my code:

/// 

        
相关标签:
3条回答
  • 2020-12-06 09:53

    Sometimes it takes time for the IntelliSense to comprehend your code. To verify that the tag is there, try using the /doc compiler option like this:

    csc YourClass.cs /doc:YourClass.xml

    If the tag is present, then it's just a matter of IntelliSense issue which is usually fixed by its own or by restarting VS

    0 讨论(0)
  • 2020-12-06 09:56

    This currently does not work (Visual Studio 2017), and is an open issue:

    https://github.com/dotnet/roslyn/issues/31618

    One way to make it work is to install the ReSharper Visual Studio plugin (but this is paid-for).

    0 讨论(0)
  • 2020-12-06 10:01

    This has been finally implemented in Visual Studio 2019 v.16.6.0, only a decade later :)

    From the release notes:

    0 讨论(0)
提交回复
热议问题