Support autocompletion for important keywords and snippets
It would be a great help if Intellisense could help contextually when writing important keywords in the editor. e.g. if I start with "pu" within a class, the suggestion for "public" should come. The suggestions should of course depend on where you are in the code. This suggestion is an extension to Issue #723
Hansjoerg, In previous builds we were having performance problems in the VS editor when we added completion code, such as the code that you suggested. The problem with your suggestion is that typing "pu" should not only expand to the keywords that start with "pu" but could also expand to the following items (when they start with "pu" of course):
- local variables that start with
- snippets
- fields and methods in the current class (and the parent classes)
- function names
- static method names in classes that are included with USING STATIC
- type names
- namespaces
- etc.
In large solutions (such as the solutions that you are working with) this could slow down the performance inside the editor A LOT.
In one of the next builds we are going to introduce this again with an option dialog from which you can control where we will look for suggestions.
And indeed we will try to make this "context aware". So after an AS Keyword we will show only namespaces, types (including delegates) and keywords that are a type.
But at the start of the line almost everything is possible