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


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":
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?


Please sign in to leave a comment.