关于VBNET中的XML摘要注释的问题

时间:2013-06-08 05:37:03

标签: xml vb.net visual-studio visual-studio-2012 intellisense

Intellisense没有显示我的蓝色参数名称,就像我在第三方项目的其他xml评论中看到的那样,Intellisense打印了所有信息,这就是我所看到的:

enter image description here

我在评论中需要做哪些修改才能让intellisense以蓝色打印参数注释作为“返回”?

    ''' <summary>
    ''' Function to pause a thread.
    ''' </summary>
    ''' 
    ''' <param name="Process_Name">The name of the process, ex: cmd.exe</param>
    ''' <param name="Thread_Number">The thread to pause, ex: 0</param>
    ''' <param name="Recursive"> <value name="True">Pause the thread in all processes recursively</value></param>
    ''' <returns>True if the process is found; otherwise, False.</returns>
    Public Shared Function Pause_Thread(ByRef Process_Name As String, _
                              Optional ByVal Thread_Number As Int32 = 0, _
                              Optional ByVal Recursive As Boolean = False) As Boolean

2 个答案:

答案 0 :(得分:6)

enter image description here尝试安装Productivity Power Tools插件

从我看到你正在寻找彩色参数帮助。

  

彩色参数帮助   此扩展通过将语法突出显示应用于C#和VB的“参数帮助”窗口的内容,提高了与编辑器的一致性。请注意:可以使用“字体和颜色”菜单中带有“签名帮助”前缀的显示项目来自定义突出显示颜色的语法。

尝试工具 - &gt;选项 - &gt;环境 - &gt;字体和颜色 - &gt;签名帮助工具提示背景。

答案 1 :(得分:2)

您的XML评论已正确配置。当您在代码中放置第一个“(”)时,您将开始看到它们。您可以通过View;对象浏览器查看所有注释。它看起来像这样:

Public Shared Function Pause_Thread(ByRef Process_Name As String, Optional Thread_Number As Integer = 0, Optional Recursive As Boolean = False) As Boolean

Member of VB_NET_TEST.WebForm1
Summary: Function to pause a thread.

Parameters:
Process_Name: The name of the process, ex: cmd.exe
Thread_Number: The thread to pause, ex: 0
Recursive: Pause the thread in all processes recursively

Return Values:
True if the process is found, otherwise, False.

Remarks: