VS2010 VB中的自定义Intellisense [英] Custom Intellisense in VS2010 VB
本文介绍了VS2010 VB中的自定义Intellisense的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨.
在表单项目VB.net VS2010中.
我有一个带有它的控件和我定义的属性的表单.我想做的是在Intellisense中显示该属性含义的简短描述.
我知道您可以针对函数执行此操作,但是对于变量我不确定.
Hi.
In a forms project VB.net VS2010.
I have a form with it''s controls and some attributes that I defined. What I want to do is show in Intellisense a small description of what the attribute means.
I know you can do it for functions but I am not so sure for variables.
Public Class Form1
Dim totalOrders as Integer ''Holds the total amount of orders
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
''some code
end sub
end class
推荐答案
我认为您想在运行时显示任何属性和功能的描述.
您可以使用以下代码行来实现.
I think that you want to show description of any attributes and function at run time.
You can achieve with following line of code.
<br />
Public Class Form1<br />
<pre lang="vb">''''''<Summary>Holds the total amount of orders</Summary> ''This will be display description at run time when you user this variable<br />
''''''<Remarks>Add your Remark here.</Remarks><br />
Dim totalOrders as Integer</pre><br />
<br />
<br />
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
''some code<br />
end sub<br />
<br />
这篇关于VS2010 VB中的自定义Intellisense的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文