fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

XML documentation in Visual Studio 2017

Open CHBen opened this issue 8 years ago • 5 comments

I would like to add a multi-line XML documentation that will appear in the Intelli-Sense bubble when my mouse hover over it. Please see the following post:

https://stackoverflow.com/questions/44565660/f-xml-multiline-documentation-visual-studio-2017

Repro steps

  1. Use Visual Studio 2017.

  2. Type the following code, and hover your mouse over it.

Expected behavior

In Visual Studio 2015, the following code works.

Actual behavior

In Visual Studio 2017, the following code does not work.

Known workarounds

According to stack overflow answers, the following code works for getting double-spacing. Is single spacing no longer supported?

partial solution

Thank you very much for your help.

CHBen avatar Jun 16 '17 01:06 CHBen

Interesting. The XML parsing logic was changed along with a significant revamp of how textual information is represented in the language service. But I'm surprised that <para> tags are now ignored.

cartermp avatar Jun 17 '17 19:06 cartermp

@cartermp Just to mention that there are different layout pathways for intra-assembly and inter-assembly XMLDocs. For example this means it is possible that <para> tags are being respected on one pathway but not another.

dsyme avatar Jun 19 '17 09:06 dsyme

Just to mention that there are different layout pathways for intra-assembly and inter-assembly XMLDocs.

I can add that this (the ignored <para>) fails inter-assembly, even inter-source-file. Intra-assembly is broken completely (no XML is shown if different assemblies, but both sources are open), but @dsyme published a fix in master (I forgot where it was), which seems related to this discussion.

abelbraaksma avatar Jul 29 '17 14:07 abelbraaksma

Work around I posted on MSDN

In VS 2019 you can add a break tag within an XML comment. image

tlhintoq avatar Dec 31 '19 14:12 tlhintoq

@tlhintoq, this fix works for C#, but not for F#, I'm afraid.

abelbraaksma avatar Jan 03 '20 16:01 abelbraaksma