Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lack of javascript intellisense in Visual Studio 2010

I was delighted to see javascript intellisense in Visual studio 2010 , but I don't see everything inside a particular object through it , in the below code

if (document.images[i].parentNode.tagName == "A"

"parentNode" doesn't shows up in intellisense which made me think that I was typing wrong code ,but it do exists and Visual studio doesn't show it..

How to fix this ?

Update Progress:

  • Used NetBeans 7.1 it didn't helped me in JavaScript,
  • Installed JScript Extensions for VStudio 2010 ,some improvements in js editing but no improved in Javascript intellisense,
like image 803
Owais Qureshi Avatar asked Feb 14 '12 17:02

Owais Qureshi


2 Answers

If you want to improve the default JavaScript experience in Visual Studio 2010 you need to install the JScript Extensions.

In VS > Tools > Extension Manager > Search for JScript

You will then be able to install the following extensions:

  • JScript Brace Matching Extension
  • JScript Editor Extension
  • JScript IntelliSense Para Extension
  • JScript Outloning Extension
  • JScript WOrk Highlighter Extension

Good luck!

like image 55
Paul Avatar answered Sep 18 '22 01:09

Paul


Out of the box you have some support for JavaScript in Visual Studio 2010 but it doesn't really cut it.

At the moment I am using Resharper 6.1 (Visual Studio plugin) which does cut it. It does exactly what you expect plus lots more. It's not free but I can advise it to anyone.

like image 28
Martijn B Avatar answered Sep 20 '22 01:09

Martijn B