Visual Studio 2010 中缺少 javascript 智能感知

发布于 2025-01-05 18:01:20 字数 439 浏览 1 评论 0原文

我很高兴在 Visual studio 2010 中看到 javascript intellisense ,但我没有通过它看到特定对象内的所有内容,在下面的代码中

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

“parentNode”没有出现在 intellisense 中,这让我认为我输入了错误的代码,但它确实存在,而 Visual Studio 没有显示它。

如何解决这个问题?

更新进度:

  • 使用了 NetBeans 7.1,它对 JavaScript 没有帮助,
  • 为 VStudio 2010 安装了 JScript 扩展,对 js 编辑进行了一些改进,但对 Javascript 智能感知没有改进,

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,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

影子是时光的心 2025-01-12 18:01:20

如果您想改善 Visual Studio 2010 中的默认 JavaScript 体验,您需要安装 JScript 扩展。

在VS> 工具>扩展管理器>搜索 JScript

然后您将能够安装以下扩展:

  • JScript 大括号匹配扩展
  • JScript 编辑器扩展
  • JScript IntelliSense Para 扩展
  • JScript Outloning 扩展
  • JScript WOrk 荧光笔扩展

祝你好运!

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!

蹲墙角沉默 2025-01-12 18:01:20

Visual Studio 2010 中对 JavaScript 提供了一些开箱即用的支持,但这并没有真正消除它。

目前我正在使用 Resharper 6.1 (Visual Studio 插件),它确实减少了它。它完全符合您的期望,而且还有更多功能。它不是免费的,但我可以向任何人提供建议。

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.

天荒地未老 2025-01-12 18:01:20

我从事 Unity3D 游戏开发,我的主要 IDE 是 MonoDevelop。 MonoDevelop with Unity3D 似乎对 JavaScript 有强大的支持。因为我主要做 C#,所以我不能说太多,但你可以尝试一下。

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.

杯别 2025-01-12 18:01:20

我找到了一个编辑器 "免费 JavaScript 编辑器" 它对 javascript 有很好的智能感知支持,它可以解决

  • HTML
  • CSS
  • Javascript

这就是我现在所需要的......! :)

感谢您的所有回复和输入...

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文