How to make IntelliJ recognize JavaScript console.log from Chrome Developer Tools (or Firebug)?

Hi,

I am coding some simple JavaScript and part of the code is to invoke Chrome Developer Tools API, namely console.log function, to output some things to the Chrome console.

In IntelliJ, the editor complains for lines like these:
console.log("Value is '%o'", val);

When I hover my mouse over the statement, it says "Invalid number of parameters, expected 0":
arrays.js_-__javascript-core__-_Ajax_Class_-____Teaching_Ajax_workspace-idea_-5.png
It's obviously not using the Chrome's version of console.log. Is there a way to get around this or to import Chrome's API into Intellij?

Thanks,
-Yaakov.

Please sign in to leave a comment.