Is it possible to provide intellisense for dynamic objects in visual studio?

点点圈 提交于 2019-12-30 06:28:30

问题


I am using dynamic objects in a project, and I'd like to provide intellisense for the object. I understand that Visual Studio can't know what to show for intellisense, but if I can plug into the intellisense, I do know what entries should show up.

Is there a way to extend Visual Studio's intellisense? If so, any pointers?

Thanks!


回答1:


You can use Editor Extension Points.

You can find specific information for extending Intellisense near the bottom of this page:

Editor Extension Points

From this page you can get information about ICompletionSource and ICompletionSourceProvider which are the two interfaces you must implement to provide autocompletion.



来源:https://stackoverflow.com/questions/12645630/is-it-possible-to-provide-intellisense-for-dynamic-objects-in-visual-studio

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