Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8606295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:03:25+00:00 2026-06-12T03:03:25+00:00

What is the best way to / How can I get Eclipse to give

  • 0

What is the best way to / How can I get Eclipse to give content assist/completion in a large javascript application.

We are developing a large application with HTML/javascript in the front end. We want to awoid cluttering up the javascript environment with lots of functions, and thus want to build a namespace for our application, lets call it app.

in order to extend our namespace we want to be able to call
app.namespace(“package”).function = function(){…}

namespace(“package”) resolves the package if it exits, or creates it if it does not.

The problem at hand is that this aproach helps us keep the environment clean, but makes content assist harder (or impossible?)

Any ideas on how to get this approach to work with code completion and content assist in eclipse?
Are there any other IDEs around that would make this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T03:03:27+00:00Added an answer on June 12, 2026 at 3:03 am

    I found several solutions for this question, none of them fullfilling exactly what I was after but each with their own strongpoints. I looked at Aptana plugin, Visual Web Developer 2010 Express and WebStorm.

    Eclipse

    For Eclipse, I ended up with the Aptana. This plugin has somewhat stronger code completion support than the standard eclips JavaScript perspective. To make our solution work, we had to create “interfaces” publishing what is available alongside our actual code. We put these interfaces in a file structure mapping to our actual code, and just leave it out when building the application.

    To get the Aptana plugin to work propperly, you need to do some changes to your setup. Under “Properties” you need to set the “Project Nature” to “Web”. Secondly, you need to edit the “Preferences/General/Editors/File Associations” make sure to set the “JavaScript Source Editor” as default NOT the standard “JavaScript Editor”. Once you reopen your javascript source files, you should be ready to go 🙂

    Visual Web Developer 2010 Express

    Actually this is pretty good for js development. The down side is offcource that installing this will install a lot of rubbish you dont need on your machine, and it takes forever and 5 (five!) reboots to install. But once you are ready to go, it is actually pseudo running your code as you type. In effect all your dynamically generated objects are available to you with intellisense giving you type specific help (Strings, Numbers, Objects, etc.) To get this fantastic (I don’t think I have ever used this word alongside a Microsoft product before) behaviour in cross file references you will need to apply some magic at the top of your file.

    /// <reference path="path to another js source file you want intellisense for">
    

    WebStorm

    I did not look as deep into this solution as the other two, because we would need a commercial licence for this product (free licence for non comercial use available). It looks like you get many of the features available for visual web developer in this IDE as well. In fact I think this IDE gives you the most hits under Code Completion and Code Assist of the three. I actually think you get too many hits under code completion, at least i got hits that were out of scope, thus making it harder to actually use properly. It’s hopefully possible to tweak this behaviour so you get more accurate support from the IDE, but I did not have the time to investigate further.

    Our conclusion

    For our part, we will probably go for the Aptana plugin for eclipse or Visual studio. Eclipse is our default IDE, and our organisation has Visual Studio in our line of approved development tools, but I would have checked out WebStorm further if we hadn’t had any prefered choices in advance that are already using.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can someone explain the best way to get around the following, rather curious type
The best way I can think of to ask this is by example... In
This is the best way I can think of phrasing this question, given this
Okay I'll try describe this the best way I can. I have a chat
Ok so let me try to explain this the best way that i can.
Can you suggest a best way to define money type in F#?
Can anyone suggest the best way to display a Textblock (with a text such
Can anyone suggest the best way to offer a file for download within a
can anyone tell me what is the best way to do something like, from
What's the best way to implement a Hash that can be modified across multiple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.