Eclipse Galileo supports javascript cross-file code completion, but Eclipse Helios does not?

ぃ、小莉子 提交于 2019-12-21 16:57:09

问题


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:

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

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

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


回答1:


My Eclipse Helios installation with Spket works just fine.

Just FYI:

Eclipse:

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

Spket:

Version: 1.6.18

In file One.js:

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

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

As you can see - test function is visible.

EDIT:

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



来源:https://stackoverflow.com/questions/6256636/eclipse-galileo-supports-javascript-cross-file-code-completion-but-eclipse-heli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!