When I'm writing JavaScript using IDEs like VSCode or WebStorm, I feel it's not as intelligent on code completion as Eclipse.
For example when I write Java using Eclipse. It's intelligent code completion feature will tell me where it will have error, without run it (possible it runs at background, but I don't need to press the run button).
But in some similar cases in VSCode or WebStorm, it does not show me the error. I need to press the run button, run it by hand, and get an error.
Like the following JavaScript code, the last one will be error after run it, but VSCode does not tell. But similar cases in Java in Eclipse will show error right away.
Also, after I type the last "." VSCode's code completion still shows the "__proto__". But similar cases in Eclipse, if the code will be error, after I type the ".", its code completion feature will not show that thing.
function MyClass(){
};
var mc = new MyClass();
console.log(mc);
console.log(mc.__proto__);
console.log(mc.__proto__.__proto__);
console.log(mc.__proto__.__proto__.__proto__); //null
console.log(mc.__proto__.__proto__.__proto__.__proto__); //Will get error
How to make VSCode or WebStorm to show error right away?
How to make these to not show that thing that will cause error after I type "."?
If VSCode or WebStorm can not do these, are there any IDEs can do this?