How do I get code completion for Node.js in Eclipse?

When developing a Node.js application in Eclipse, you usually import your own modules with functionality tied to exports (append functions) or module.exports (allows popular object literal notation).

But how do you set this up for code completion in files where you import your module?


enter image description here

As you can see in the outliner, Eclipse is “aware” of the function:

enter image description here

Yet importing the module as tools doesn’t make it’s functions available:

enter image description here

I also tried the oldskool //@import tools.js but it doesn’t seem to work like this.

How do I get code completion for my own functions in my project?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

@Jey Keu: this question has some suggestions towards our mutual dream of code completion, namely:

  • Amateras plugin
  • JSDT editor
  • Aptana Plugin
  • SPKET plugin
  • VJET plugin

But it was closed by a bunch of people who know nothing about Eclipse. Profiling is the basis of code completion. But they think profiling is unicorns and rainbows and therefore not constructive.

I think, depending on your specific development needs, that VJET is your best bet. If you can get it to work without destroying every other function within Eclipse, please share your wizardry in this question.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply