F#XML多行文档,Visual Studio 2017

编程入门 行业动态 更新时间:2024-10-24 20:24:21
本文介绍了F#XML多行文档,Visual Studio 2017的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想添加一个多行XML文档,当我的鼠标悬停在它上面时,该文档将出现在Intelli-Sense气泡中.参见例如:

I would like to add a multi-line XML documentation that will appear in the Intelli-Sense bubble when my mouse hover over it. See for example:

当我使用Visual Studio 2015时,以下代码有效(请参见下面的屏幕快照),但是现在当我使用Visual Studio 2017时,它不再起作用:

When I am using Visual Studio 2015, the following code works (see screenshots below), but now when I use Visual Studio 2017, it does not work anymore:

请参见下面在VS2015和VS2017中拍摄的屏幕截图

See the following screenshot taken in VS2015 and VS2017

VS2015:

VS2017:

在搜索stackoverflow和其他网站之后,我尝试了一些代码,但仍然无法正常工作.

After searching stackoverflow and other website, I tried some codes, but it is still not working.

// My failed guesses /// This also does not work /// &amp; &#10; This does not work let EXAMPLE3 = 2.0 /// This also does not work /// \n This does not work let EXAMPLE4 = 2.0 /// This also does not work /// <br> This does not work let EXAMPLE5 = 2.0 /// <summary> /// This also does not work /// <para> &#13; This does not work </para> /// </summary> let EXAMPLE6 = 2.0

如何添加C#.NET文档中的换行符

记录F#代码

www.w3/MarkUp/html- spec/html-spec_13.html

如何在VS2017中为F#添加多行XML文档?非常感谢您的帮助.

How do I add a multi-line XML documentation in VS2017, for F#? Thank you very much for your help.

推荐答案

有趣的是,在VS 2017中似乎可以使用完全空白的行,而在VS 2015中则行不通:

Interestingly, leaving a completely blank line seems to work in VS 2017 but not in VS 2015:

/// First paragraph /// /// Second paragraph let example = 1

我不知道这是否是有意添加的.

I don't know if this an intentional new addition.

忽略<para>标记看起来像是VS2017中的错误.

Ignoring the <para> tag looks like a bug in VS2017.

更多推荐

F#XML多行文档,Visual Studio 2017

本文发布于:2023-11-15 23:43:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1599016.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Visual   XML   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!