gpt4 book ai didi

WebStorm 和/或 VS Code 中的 Node.js 智能感知

转载 作者:太空宇宙 更新时间:2023-11-03 22:53:15 29 4
gpt4 key购买 nike

是我的问题还是 Visual Studio Code 和 Webstorm 10 中没有 Node.js 智能感知?例如,当我有 var http = require('http') 时,http. 不包含 createServer 作为建议。

如何使智能感知发挥作用?

最佳答案

在 webstorm 中,要为 node.js 核心模块启用智能感知,您需要配置 Node 源,这可以在设置 -> 语言和框架 -> Node.js 和 NPM -> 单击配置下完成。 Webstorm 将下载系统上安装的 Node 版本的源代码并将其附加到打开的项目中。享受 Webstorm 出色的智能感知。 :)

关于WebStorm 和/或 VS Code 中的 Node.js 智能感知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33696705/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com