JavaScript in VS11

Today I was working on rewriting a complex AJAX page to use KnockoutJS and I used the new Visual Studio 11 editor for it.

There are some big improvements in VS11.

1. Better IntelliSense:
2. Completion hints:
3. Implicit references and immediate feedback on undefined objects. This was really nice while working with a returned JSON object from an AJAX call. IntelliSense will parse the file looking for identifiers and will show them (with a special icon) in the IntelliSense list.
But one thing that annoyed me was the auto completion mode.

In C# I’m used to hitting the next character (a ; or ( for example) as soon as I see the right option in my IntelliSense. The editor will then autocomplete with the current item and everything works fine. In JavaScript, it’s another story. When hitting the next character, the editor doesn’t insert the IntelliSense item, but just chops of your current item.

So I started looking around if this could be changed and the good news is: it can be changed!
In the option screen there is an option for Statement Completion in JavaScript. Unchecking the box fixes everything Smile


Wouter de Kort works as a lead architect and consultant. He helps organizations stay on the cutting edge of software development. Wouter focuses on DevOps. He loves solving complex problems and helping other developers to grow. Wouter authored the book DevOps on the Microsoft stack and a couple of other books. Wouter is a Microsoft MVP and an ALM Ranger. You can find him on Twitter (@wouterdekort), on his blog at and at the various conferences where Wouter speaks.


Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.