VS 2003 Tip #11: Autocomplete on new class creation


In Everett we made a small change to Intellisense to lessen the code you had to type. Often you will new up a class and write something like:


Foo x = new Foo();


In VS7 you had to type out the whole thing. In Everett we had Intellisense pop up after the new, to autocomplete the class name. This is one of those small features which just makes Everett (to me) so much more enjoyable to use.


As a side note, once we did this, one of the first bugs we saw was that if we declared x to be of type Foo higher up in the file, and then later on declared “x = new“, we didnt autocomplete. I am deeply appreciative of our QA team 🙂


 


 

Comments (7)

  1. Jim says:

    If VS.Net can support intellisense for Javascript I will love and kiss every single one of VS.Net developers. That’s the feature I would die for. Javascript support, Javascript Support. VS.Net 2003 is an awesome product, but javascript support is not as good as others. Especially for the browsers.

  2. I have found that there are limited intellisense support for client-side Javascript (due to the fact that it’s not type safe), but only if your Javascript funtions are embedded into the aspx page itself.

    It would’ve been helpful if the members of the IHTMLElement interface were displayed as a standard list in the Intellisense menu when working with unknown Javascript objects. But it’s understandable that this may be misleading.

  3. I don’t know if this already exists in Whidbey, but how about adding a feature that filters all classes that inherit from that class in the pop up?

    This way, if I declare an instance of type A, from which class B derives, I would have only A and B in my pop up list, with A highlighted.

  4. 英国留学 says:

    If VS.Net can support intellisense for Javascript I will love and kiss every single one of VS.Net developers. That’s the feature I would die for. Javascript support, Javascript Support.

  5. 耳机 says:

    This is one of those small features which just makes Everett (to me) so much more enjoyable to use.

  6. dru says:

    +1 for JavaScript Support