Custom intellisense for server controls?

心不动则不痛 提交于 2019-12-17 21:07:37

问题


Can you program/configure Visual Studio to produce custom intellisense for your own server controls.

eg can you get it to do this:

alt text http://www.yart.com.au/test/vs.gif

for a tag of your own like:

<MyCompany:MyTag ...

回答1:


You should be getting this for free (default behavior of control). Are the references all in place while you are typing the custom control?

There is an attribute to hide properties from intellisense:

[EditorBrowsableAttribute (EditorBrowsableState.Never)] 

Use the description attribute to provide additional help:

[Description("My extra helpful description")]

There are some other attributes that affect intellisense and the property explorer you might want to look up...




回答2:


Bluevision have a nice plugin for Visual Studio to do this for you. Last time I looked, it was free. (yep, it's still free!)

  • IntellisenseAttribute class allows you to specify members for which intellisense symbols will be generated.

  • Ability to generate default intellisense symbols for assemblies when you don't have access to the source code.

  • NEW Snaps right into the IDE so that intellisense generation can be automated during the build process.

  • Supports two visual views: Full Mode and Skin Mode.

  • Full source code.

  • FREE!

http://www.bluevisionsoftware.com/WebSite/ProductsAndServicesInfo.aspx?ID=9



来源:https://stackoverflow.com/questions/307514/custom-intellisense-for-server-controls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!