最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

asp.net - Lack of javascript intellisense in Visual Studio 2010 - Stack Overflow

programmeradmin1浏览0评论

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,

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,
Share Improve this question edited Feb 27, 2012 at 16:24 DayTimeCoder asked Feb 14, 2012 at 17:26 DayTimeCoderDayTimeCoder 4,3325 gold badges40 silver badges63 bronze badges 6
  • I have checked several solutions on SO but didn't find them useful – DayTimeCoder Commented Feb 14, 2012 at 17:28
  • I have just downloaded NetBeans 7.1 but its Javascript intellisense is also not working :/ – DayTimeCoder Commented Feb 14, 2012 at 17:38
  • 4 JavaScript intellisense is more difficult since its a loosely typed scripting language. There are some extensions that help, such as ReSharper and JScript. – jrummell Commented Feb 14, 2012 at 17:39
  • NetBeans won't help you with ASP.NET ... – jrummell Commented Feb 14, 2012 at 17:42
  • @jrummell Yes i know ,I would like to use it for Javascript only – DayTimeCoder Commented Feb 14, 2012 at 17:50
 |  Show 1 more comment

4 Answers 4

Reset to default 11

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!

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.

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.

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...

发布评论

评论列表(0)

  1. 暂无评论