Lack of javascript intellisense in Visual Studio 2010

安稳与你 提交于 2019-12-06 02:06:23

问题


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,

回答1:


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.




回答2:


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!




回答3:


I do Unity3D game development, and my primary IDE is MonoDevelop. MonoDevelop with Unity3D appears to have strong support for JavaScript. Since I mostly do c#, I cannot say much about it, but you can play around with it.




回答4:


I have found an Editor "Free JavaScript Editor" it has good intellisense support for javascript, it can tackle

  • HTML
  • CSS
  • Javascript

It was all that I need right nowt..! :)

Thanks for all the replies and input...



来源:https://stackoverflow.com/questions/9281405/lack-of-javascript-intellisense-in-visual-studio-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!