用于 require(.json) 的 webstorm 自动完成 [英] webstorm autocomplete for require(.json)

查看:23
本文介绍了用于 require(.json) 的 webstorm 自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Webstorm 在为 node.js 模块提供自动完成时非常聪明.不幸的是,由于某种原因,如果所需的模块是一个 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?

谢谢.

推荐答案

看起来像一个错误,记录为 WEB-10568,请点赞

looks like a bug, logged as WEB-10568, please upvote it

这篇关于用于 require(.json) 的 webstorm 自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆