本文介绍了无JavaScript的自动完成中的PyDev Eclipse项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Eclipse中的PyDev和JavaScript开发工具(JSDT)。
我使用这个环境来开发Web应用程序。

I have Eclipse with PyDev and JavaScript Development Tools (JSDT).I'm using this environment to develop web applications.

Python中,HTML和CSS编辑器都做工精细:突出显示和自动完成的作品。
JavaScript的高亮工程太,但JavaScript的自动完成功能无法正常工作

Python, HTML, and CSS editors all work fine: highlighting and auto completion works.JavaScript highlighting works too, but JavaScript auto completion does not work.

切换到JavaScript的角度来看并没有帮助。

Switching to the JavaScript perspective doesn't help.

不过,如果我创建一个单独的 JavaScript的项目(而不是添加JavaScript文件到我的PyDev项目),JavaScript的自动完成功能似乎正常工作。

However, if I create a separate JavaScript Project (rather than adding JavaScript files into my PyDev project), JavaScript auto completion seems to work properly.

其他详细信息

当我创建一个 JavaScript的项目,Eclipse将增加一定的 JavaScript资源在默认情况下该项目。例如,的ECMAScript内置库 ECMA 3浏览器支持库。这些都是在脚本资源管理器窗口中可见,以及根据项目属性 - > JavaScript的 - >库

When I create a JavaScript Project, Eclipse adds certain JavaScript Resources to the project by default. For example, ECMAScript Built-In Library and ECMA 3 Browser Support Library. These are visible in the Script Explorer window, as well as under Project Properties -> JavaScript -> Libraries.

问题是,我没有一个项目属性 - > JavaScript的选项时,在的PyDev项目

The problem is, I don't have a Project Properties -> JavaScript option when in a PyDev Project.

问:什么我需要做的(如配置明智),以获得在Eclipse中的JavaScript自动完成,不用时 JavaScript的项目 (即当在的PyDev项目)?
是否有可能在Eclipse中添加一个JavaScript的角度/(我不知道究竟是什么把这个......)到的PyDev项目

Question: What do I need to do (e.g. config wise) to get JavaScript auto completion in Eclipse, when NOT in a JavaScript Project (i.e. when in a PyDev Project)?Is it possible to add a JavaScript perspective/(I'm not sure what call this exactly...) to a PyDev Project in Eclipse?

我很新(2天),以JavaScript开发,所以preemptive道歉,如果这个问题/解决方案是小事!

I'm very new (2 days) to JavaScript development, so preemptive apologies if the problem/solution is trivial!

推荐答案

您应该先创建一个JavaScript项目,然后使它成为一个项目的PyDev(右键点击它>的PyDev>设置为项目的PyDev)。

You should create a javascript project first and then make it a PyDev project (right click it > PyDev > Set as PyDev project).

另外,如果你开始,你可能要检查的Aptana Studio的3:(它设置有用于Web开发的整个工具链Eclipse插件,具有对JavaScript,HTML,CSS编辑器以及的PyDev preinstalled) - 请注意,你可以只下载独立版本检查,并针对现有的工作区。

Also, if you're starting out, you may want to check Aptana Studio 3: http://aptana.org/ (it's set of Eclipse plugins that has the whole toolchain for web development, with editors for javascript, html, css as well as PyDev preinstalled) -- note that you can check it by just downloading the standalone version and pointing to an existing workspace.

这篇关于无JavaScript的自动完成中的PyDev Eclipse项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 23:47