Search code examples
node.jswebstorm

webstorm autocomplete for require(.json)


Webstorm is pretty smart when providing auto completion for node.js modules. unfortunatelly for some reason if the required module is a json file i.e

var settings = require('./settings.json);

it does require it and build an object with the data but, no autocomplete is provided in the editor.

Anyone have any solutions for that?

Thanks.


Solution

  • Looks like it was a bug, logged as WEB-10568.

    The issue has been marked as Fixed since this answer was originally posted.