问题
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