Visual Studio 2010 中缺少 javascript 智能感知
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9281405/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Lack of javascript intellisense in Visual Studio 2010
提问by Owais Qureshi
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
我很高兴在 Visual Studio 2010 中看到 javascript 智能感知,但在下面的代码中,我没有通过它看到特定对象中的所有内容
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..
“parentNode”没有出现在智能感知中,这让我认为我输入了错误的代码,但它确实存在并且 Visual Studio 没有显示它..
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,
- 使用 NetBeans 7.1 它在 JavaScript 中没有帮助我,
- 为 VStudio 2010 安装了 JScript 扩展,在 js 编辑方面有一些改进,但在 Javascript 智能感知方面没有改进,
采纳答案by Martijn B
Out of the box you have some support for JavaScript in Visual Studio 2010 but it doesn't really cut it.
开箱即用,您在 Visual Studio 2010 中有一些对 JavaScript 的支持,但它并没有真正削减它。
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.
目前我正在使用Resharper 6.1(Visual Studio 插件),它确实削减了它。它完全符合您的期望以及更多。它不是免费的,但我可以向任何人推荐它。
回答by Paul
If you want to improve the default JavaScript experience in Visual Studio 2010 you need to install the JScript Extensions.
如果要改进 Visual Studio 2010 中的默认 JavaScript 体验,则需要安装 JScript 扩展。
In VS > Tools > Extension Manager > Search for JScript
在 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
- JScript 大括号匹配扩展
- JScript 编辑器扩展
- JScript IntelliSense Para 扩展
- JScript Outloning 扩展
- JScript 工作荧光笔扩展
Good luck!
祝你好运!
回答by harsimranb
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.
我做 Unity3D 游戏开发,我的主要 IDE 是 MonoDevelop。MonoDevelop with Unity3D 似乎对 JavaScript 有很强的支持。因为我主要做 c#,所以我不能说太多,但你可以玩它。
回答by Owais Qureshi
I have found an Editor "Free JavaScript Editor" it has good intellisense support for javascript, it can tackle
我找到了一个编辑器“免费 JavaScript 编辑器”,它对 javascript 有很好的智能支持,它可以解决
- HTML
- CSS
- Javascript
- HTML
- CSS
- Javascript
It was all that I need right nowt..! :)
这就是我现在需要的一切..!:)
Thanks for all the replies and input...
感谢您的所有回复和输入...