Is there a way to get smarter code completion in IntelliJ IDEA 10? Review the attached file. Even though the variable myVar currently contains a string, the autocompletion suggests methods for other types (like boolean, number and array). IDEA also give me suggestions from libraries I don't use (like Prototype.js).
I'd like the IDE to give me relevant options - a list of 289 suggestions (where most of them will generate an error) really don't help ... Is there a way to change this?
Attachment(s):Screen shot 2011-01-03 at 16.48.15.png