How does intellisense work in Visual Studio?

后端 未结 7 777
一个人的身影
一个人的身影 2020-12-19 02:35

I hope this is a valid question: how does intellisense work in VS2008? I\'m after what is known about the algorithm it uses to find the suggestions, when exactly it pops up

相关标签:
7条回答
  • 2020-12-19 02:53

    For such cases I sometimes use my own version of InteliSense that I developed for AutoHotKey when I want specific behavior. The point of this script is that it can be used with any editor, or basically any control accepting text. It works by recording text input and interpreting it upon syntax file.

    You can perhaps use it as a base for the thing you want to achieve. I used ISense succesifully with several languages that don't have such thing, like Csound or even batch scripts. It will be possible to extend it to support C# using input monitoring in combination with Reflection.

    Anyway, with AHK you can even control VS intelissense by "taking" the list of items it presents and filter it, or similar things. You may have some small problems with process boundaries but nothing that cant be fixed.

    The intellisense ius generally, AFAIK, implemented using different methods. I read that Delphi is so fast that it implements isense by recompiling the project on each token and thats the reason C++ Builder didn't have isense as its compiling very slow.

    0 讨论(0)
提交回复
热议问题