Visual Studio 2010 JavaScript Intellisense Behavior

JavaScript Intellisense

After I installed Visual Studio 2010 I was having a difficult time editing .js files in Visual Studio. I habitually type the "(" character as soon as the function I want to call is highlighted in the Intellisense window, but in 2010 this behavior was no longer auto-completing the function name.

At first I thought this behavior was due to the new "suggestion mode" in Intellisense, but no amount of toggling with CTRL+ALT+SPACE would bring back the auto-complete behavior.

It turns out the two Intellisense modes (completion mode and suggestion mode) are not included for every editor ("JScript" being a notable omission). After some digging I found I could change this behavior by going to Tools -> Options -> Text Editor -> JScript -> Miscellaneous and unchecking the "Only use Tab or Enter to complete" option.

Hope that helps.

Print | posted @ Monday, June 14, 2010 9:12 PM

Comments on this entry:

Gravatar # re: Visual Studio 2010 JavaScript Intellisense Behavior
by Jon at 6/16/2010 7:51 AM

Thanks, I never thought to look if it could be changed, I was just putting up with it
  
Gravatar # re: Visual Studio 2010 JavaScript Intellisense Behavior
by kg at 9/15/2010 3:21 PM

my studio doesn't have a JScript option under Text Editor
  
Gravatar # re: Visual Studio 2010 JavaScript Intellisense Behavior
by Justas at 12/10/2010 7:10 PM

Thanks man, I'm so used to intellisense behavior in C# and found the javascript behavior frustrating, esp. since the syntax is similar.
  
Comments have been closed on this topic.
Scott Allen
Posts - 869
Comments - 4493
Stories - 14