关于评论格式的问题。 [英] Question about comment format.
问题描述
当我写< summary>评论一个功能。我写道:
///< summary>
///第一行。
///第二行。
///< / summary>
我想要智能机制显示:
第一行。
第二行。
但显示:
第一行。第二行。
他们被放在一行。我怎么能得到我想要的东西?谢谢。
When I wrote <summary> comment for a function. I wrote:
/// <summary>
/// Line one.
/// Line two.
/// </summary>
I want the intelligence mechanism display:
Line one.
Line Two.
but it display:
Line one. Line two.
They were put in one line. How could I get what I want? Thank you.
推荐答案
" news.microsoft.net" <无线********* @ hotmail.com>在新闻中写道:
#h*************@TK2MSFTNGP11.phx.gbl:
"news.microsoft.net" <Wi*********@hotmail.com> wrote in news:
#h*************@TK2MSFTNGP11.phx.gbl:
当我写了< ;总结>评论一个功能。我写道:
///< summary>
///第一行。
///第二行。
///< / summary>
我想要智能机制显示:
第一行。
第二行。
但它显示:
第一行。第二行。
他们被排成一行。我怎么能得到我想要的东西?谢谢。
When I wrote <summary> comment for a function. I wrote:
/// <summary>
/// Line one.
/// Line two.
/// </summary>
I want the intelligence mechanism display:
Line one.
Line Two.
but it display:
Line one. Line two.
They were put in one line. How could I get what I want? Thank you.
我不确定这个,但你可以尝试包含Escape Sequenzes(\ n
\ r \\ t,...)或者编码的HTML标签(& lt; br& gt; ...)。
取决于MS用于什么渲染intellisense
-
------ ooo --- OOO --- ooo ------
Peter Koen - www.kema.at
MCAD CAI / RS CASE / RS IAT
------ ooo --- OOO --- ooo ------
I''m not sure about this, but you could try to include Escape Sequenzes (\n
\r\t,...) or maybe encoded HTML Tags (<br>... ).
Depends on what MS used for rendering the intellisense
--
------ooo---OOO---ooo------
Peter Koen - www.kema.at
MCAD CAI/RS CASE/RS IAT
------ooo---OOO---ooo------
news.microsoft.net< Wi ********* @ hotmail.com>写道:
news.microsoft.net <Wi*********@hotmail.com> wrote:
当我写< summary>评论一个功能。我写道:
///< summary>
///第一行。
///第二行。
///< / summary>
我想要智能机制显示:
第一行。
第二行。
但它显示:
第一行。第二行。
他们被排成一行。我怎么能得到我想要的东西?谢谢。
When I wrote <summary> comment for a function. I wrote:
/// <summary>
/// Line one.
/// Line two.
/// </summary>
I want the intelligence mechanism display:
Line one.
Line Two.
but it display:
Line one. Line two.
They were put in one line. How could I get what I want? Thank you.
您可以使用以下方法将它们分成段落:
///< summary>
///< para>第1段< / para>
///< para>第2段< / para>
///< ;摘要>
或者您可以使用< list>如果这更合适。
请参阅XML文档,评论标记和在MSDN获取更多
信息。
-
Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet
如果回复该组,请不要给我发邮件
You can break them into paragraphs using:
/// <summary>
/// <para>Paragraph 1</para>
/// <para>Paragraph 2</para>
/// <summary>
Or you could use <list> if that''s more appropriate.
See "XML documentation, tags for comments" in MSDN for more
information.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
我试过< para>,< p>,< list> ;甚至< br>和\r \ n。
它们没有任何效果。 (< list>插入一些空格,但没有
插入CRLF)
似乎vs.net不知道它们的含义。
那我该怎么办?
谢谢。
" news.microsoft.net" <无线********* @ hotmail.com> D'è?óê?t
新闻:%2 *************** @ TK2MSFTNGP11.phx.gbl ...
I have tried <para>, <p>, <list> and even <br> and \r \n.
They do not take any effect. (<list> inserts some white space but does not
insert CRLF)
It seems that vs.net does not know their meanings.
What can I do then?
Thank you.
"news.microsoft.net" <Wi*********@hotmail.com> D′è?óê?t
news:%2***************@TK2MSFTNGP11.phx.gbl...
当我写< summary>评论一个功能。我写道:
///< summary>
///第一行。
///第二行。
///< / summary>
我想要智能机制显示:
第一行。
第二行。
但它显示:
第一行。第二行。
他们被排成一行。我怎么能得到我想要的东西?谢谢。
When I wrote <summary> comment for a function. I wrote:
/// <summary>
/// Line one.
/// Line two.
/// </summary>
I want the intelligence mechanism display:
Line one.
Line Two.
but it display:
Line one. Line two.
They were put in one line. How could I get what I want? Thank you.
这篇关于关于评论格式的问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!