Eclipse Galileo支持javascript跨文件代码完成,但Eclipse Helios不支持? [英] Eclipse Galileo supports javascript cross-file code completion, but Eclipse Helios does not?

查看:115
本文介绍了Eclipse Galileo支持javascript跨文件代码完成,但Eclipse Helios不支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当编辑多个javascript文件时,每个javascript文件应该在全局范围内可用,因为 - 例如 - 它们将被加载到同一个html文档中,Galileo支持这个小技巧来为其他文件添加注释标记必须在相同的范围内提供:

When editing multiple javascript files, each of which are supposed to be available in the global scope because - for example - they will each be loaded in the same html document, Galileo supported this little trick to put comment tags for other files that are required to be available in the same scope:

myfile.js:

myfile.js:

// @include "somefile.js"
// @include "otherfile.js"

你在myfile.js中有跨文件代码完成。

And you have cross-file code completion in myfile.js.

但是现在我转到了Eclipse Helios,这不再适用了。他们是否将类似的功能移动到其他方法?

But now that I moved to Eclipse Helios, this doesn't work anymore. Did they move similar functionality to some other method?

推荐答案

使用Spket进行的Eclipse Helios安装工作正常。

My Eclipse Helios installation with Spket works just fine.

仅供参考:

Eclipse

版本:Helios Service Release 2
构建ID:20110218-0911

Version: Helios Service Release 2 Build id: 20110218-0911

Spket:

版本:1.6.18

在文件One.js中:

In file One.js:

var varOne = 
{
    test: function(){}
}

在Ctrl-Space(或。)上的文件Two.js中:

In file Two.js on Ctrl-Space (or .):

如您所见 - test 功能可见。

As you can see - test function is visible.

编辑

也是,什么是复活2个月问题的政策?

also, what's the policy on resurrection of 2 months old questions?

这篇关于Eclipse Galileo支持javascript跨文件代码完成,但Eclipse Helios不支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆