Mimic Intellisense

寵の児 提交于 2019-12-21 21:08:31

问题


I want to find C# in a string of c# code, with its parameters. Like in Visual C# as you type, in the intellisense you can find methods you've written inside the text area, I want to accomplish this basically. As the user is typing, and my intellisense pops up, I want to populate my intellisense with the new/edited methods that are in the textarea where the user is typing. Please suggest a good way to approach it, thanks!


回答1:


Commercial: Actipro SyntaxEditor - Windows Forms .NET Control

Free (quite basic): DIY Intellisense




回答2:


Take a look at SharpDevelop . it's an open source IDE for C# and VB.Net and it has intellisence.




回答3:


Sounds like what you want is a C# parser - you can try to use Irony, a parser builder:

http://www.codeplex.com/irony

Or you can use F# with fslex and fslex:

http://stepheneasey.wordpress.com/2009/02/11/fslex-and-fsyacc-tutorial-parsing-sql/

These may not do exactly what you want but could at least get you in the right direction.



来源:https://stackoverflow.com/questions/1457961/mimic-intellisense

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