189 8069 5689

vscode无法对js进行智能提示怎么办

小编给大家分享一下vscode无法对js进行智能提示怎么办,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

创新互联主营河间网站建设的网络公司,主营网站建设方案,成都App制作,河间h5小程序设计搭建,河间网站营销推广欢迎河间等地区企业咨询

1、安装typings。

npm install typings --global

2、项目下初始化typings。

typings init

3、项目下增加jsconfig.json。内容如下:

{
 // See https://go.microsoft.com/fwlink/?LinkId=759670
 // for the documentation about the jsconfig.json format
 "compilerOptions": {
 "target": "es5",
 "module": "commonjs",
 "allowSyntheticDefaultImports": true
 },
 "exclude": [
 "node_modules",
 "bower_components",
 "jspm_packages",
 "tmp",
 "temp"
 ]
}

4、安装想要的提示。

typings install dt~node --global --save
typings install express --ambient --save

以上是“vscode无法对js进行智能提示怎么办”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!


当前标题:vscode无法对js进行智能提示怎么办
路径分享:http://cdxtjz.cn/article/jpjjpe.html

其他资讯