问题
Can somebody please shed light on how exactly intellisense works in Visual Studio?
回答1:
Here's an MSDN article providing an overview. It discusses features, language specific topics, customation, when it's not available and a number of other topics.
回答2:
The secret behind intellisense is Build Providers, which run in the background. This article will throw more light on this topic:
http://aspalliance.com/1102_Creating_a_Custom_BuildProvider_in_ASPNET_20
Hope this helps,
回答3:
Background compilation, really. Visual Studio continuously compile your code as you type them, with bit more lenience compared to standard compiler of course, since your code isn't completed yet. Notice that other than listing a new class member as you add them, it also detect errors in your code right away. If you did this before VS 2008 SP1 though, you'll instead envy the VB camp
来源:https://stackoverflow.com/questions/5348744/how-visual-studio-intellisense-works